/* =============================================================
   蓝海科技有限责任公司日照分公司 · 官网样式
   纯静态、无外部 CDN 依赖
   ============================================================= */

:root {
  --ink:        #0A1830;
  --ink-2:      #1B2E4B;
  --muted:      #5A6B84;
  --line:       #E2E8F0;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F8FC;
  --bg-deep:    #071A33;
  --bg-deep-2:  #0C2B52;
  --blue:       #1450A3;
  --blue-lt:    #2E7CE0;
  --cyan:       #17B8D8;
  --radius:     16px;
  --wrap:       1140px;
  --shadow-sm:  0 2px 10px rgba(10, 24, 48, .06);
  --shadow-md:  0 12px 32px rgba(10, 24, 48, .10);
  --shadow-lg:  0 24px 60px rgba(10, 24, 48, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-lt); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 24, 48, .06);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: .2px; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1450A3 0%, #17B8D8 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(20, 80, 163, .28);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 1.4px; margin-top: -3px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; list-style: none; padding: 0; margin-block: 0;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 9px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: 9px 18px !important; border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(20, 80, 163, .25);
}
.nav-cta:hover { background: var(--blue-lt) !important; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% -10%, rgba(23, 184, 216, .30), transparent 62%),
    radial-gradient(760px 460px at 12% 8%, rgba(46, 124, 224, .34), transparent 60%),
    linear-gradient(160deg, #071A33 0%, #0C2B52 52%, #0A2244 100%);
  color: #fff;
  padding: 92px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; letter-spacing: .6px; color: #CFE6FF;
  margin-bottom: 26px;
}
.hero-tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34E4B0; box-shadow: 0 0 0 4px rgba(52, 228, 176, .18);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.24; letter-spacing: -.5px; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #7FD8FF 0%, #34E4B0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  max-width: 660px; margin: 0 0 38px;
  font-size: 17px; line-height: 1.85; color: #B9CDE6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 11px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #2E7CE0, #17B8D8);
  color: #fff; box-shadow: 0 12px 30px rgba(23, 184, 216, .32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(23, 184, 216, .42); }
.btn-ghost {
  background: rgba(255, 255, 255, .07); color: #E6F1FF;
  border-color: rgba(255, 255, 255, .20);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 68px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; overflow: hidden;
}
.hero-stats div {
  background: rgba(8, 27, 52, .55); padding: 22px 18px; text-align: center;
}
.hero-stats strong {
  display: block; font-size: 25px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 12.5px; color: #93AECB; letter-spacing: .5px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 2px; color: var(--blue); text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0 0 16px; font-size: clamp(24px, 3vw, 34px);
  line-height: 1.32; letter-spacing: -.4px; font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.85; }

/* ---------------- 关于我们 ---------------- */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.about-text p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.92; }
.about-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.about-points li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
}
.about-points .tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(23, 184, 216, .12); color: #0E9BBC;
  display: grid; place-items: center; margin-top: 3px;
}
.about-points .tick svg { width: 12px; height: 12px; }

.about-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #0C2B52, #1450A3 55%, #17B8D8 130%);
  padding: 40px 34px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-card::after {
  content: ""; position: absolute; right: -60px; bottom: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
}
.about-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.about-card > p { margin: 0 0 26px; color: rgba(255, 255, 255, .74); font-size: 14px; position: relative; z-index: 1; }
.about-card dl { margin: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.about-card dt { font-size: 12px; letter-spacing: 1.2px; color: rgba(255, 255, 255, .60); margin-bottom: 3px; }
.about-card dd { margin: 0; font-size: 15.5px; font-weight: 600; }

/* ---------------- 业务领域 ---------------- */
.biz-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative; overflow: hidden;
}
.biz-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #2E7CE0, #17B8D8);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(46, 124, 224, .12), rgba(23, 184, 216, .14));
  color: var(--blue);
}
.biz-icon svg { width: 24px; height: 24px; }
.biz-card h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; letter-spacing: -.1px; }
.biz-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------------- 服务优势 ---------------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.adv-item {
  display: flex; gap: 18px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.adv-num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #1450A3, #17B8D8); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  letter-spacing: -.5px;
}
.adv-item h3 { margin: 2px 0 8px; font-size: 16.5px; font-weight: 700; }
.adv-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------------- 联系我们 ---------------- */
.contact {
  background: linear-gradient(160deg, #071A33 0%, #0C2B52 62%, #0A2244 100%);
  color: #fff; padding: 92px 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 216, .22), transparent 66%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact-head { max-width: 620px; margin-bottom: 48px; }
.contact-head .eyebrow { color: #7FD8FF; }
.contact-head h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; }
.contact-head p { margin: 0; color: #A9C2DD; font-size: 15.5px; line-height: 1.85; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 26px 24px;
}
.contact-card .label {
  font-size: 12px; letter-spacing: 1.6px; color: #7FA6CC;
  text-transform: uppercase; margin-bottom: 10px;
}
.contact-card .value { font-size: 16px; font-weight: 600; word-break: break-all; }
.contact-card .value small { display: block; font-size: 12.5px; font-weight: 400; color: #8FA8C4; margin-top: 6px; word-break: normal; }
.contact-note {
  margin-top: 34px; padding: 18px 22px; border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--cyan);
  font-size: 14px; color: #A9C2DD; line-height: 1.8;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #04121F; color: #7C93AC;
  padding: 46px 0 34px; font-size: 13.5px;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #D6E4F2; font-weight: 700; font-size: 15px; }
.footer-brand .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #8FA8C4; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between; font-size: 12.8px; line-height: 1.9;
}
.beian { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.beian a { color: #7C93AC; display: inline-flex; align-items: center; gap: 6px; }
.beian a:hover { color: #fff; }
.beian .police-badge { width: 15px; height: 16px; flex: 0 0 15px; }
.footer-copy { color: #5E748C; }

/* ---------------- 法律页 ---------------- */
.legal {
  padding: 70px 0 90px;
  max-width: 860px; margin-inline: auto;
}
.legal h1 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 10px; letter-spacing: -.4px; }
.legal .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 18px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; line-height: 1.95; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; font-size: 14px; }

/* ---------------- 入场动画 ----------------
   默认可见；仅在 JS 已就绪（html.js-anim）时才隐藏等待进入视口，
   避免脚本失败或未触发时整页透明。 */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
html.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .biz-card:hover { transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; margin: 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero { padding: 62px 0 70px; }
  .hero-lead { font-size: 15.5px; }
  .section, .contact { padding: 64px 0; }
  .biz-grid { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 46px; }
  .footer-top { flex-direction: column; gap: 22px; }
}
