/* ==========================================================================
   厦门余富信息技术 · 官网样式
   设计 token 沿用参考版：深海军蓝主色 + 橙红强调色
   ========================================================================== */

:root {
  --primary: #0b3459;
  --primary-light: #164b7a;
  --primary-soft: #e8f0f8;
  --accent: #d95323;
  --accent-hover: #c04418;
  --accent-soft: #ffb38a;
  --text-dark: #1a2430;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg-soft: #f7fafc;
  --line: #d4dde8;
  --line-soft: #eef2f7;

  --shadow-sm: 0 2px 8px rgba(11, 52, 89, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 52, 89, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 52, 89, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft Yahei", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部公告条 ---------- */
.announce {
  background: linear-gradient(90deg, var(--accent), #e8692f);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.3px;
}
.announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce a:hover { color: #fff3ec; }
.announce[hidden] { display: none; }

/* ---------- 导航 ---------- */
header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}
.logo svg { flex: none; }

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 450;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  line-height: 1;
  padding: 2px 6px;
}

/* ---------- 首屏 ---------- */
.banner {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(217, 83, 35, 0.28), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
}
.banner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}
.banner .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.banner h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.banner h1 .hl { color: var(--accent-soft); }
.banner p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 680px;
  margin-bottom: 32px;
  font-weight: 350;
}

.banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.banner-stats {
  display: flex;
  gap: 38px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.banner-stats .st { display: flex; flex-direction: column; }
.banner-stats .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1.3;
}
.banner-stats .num .suffix { font-size: 18px; font-weight: 600; margin-left: 2px; }
.banner-stats .lbl { font-size: 14px; opacity: 0.85; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 550;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 83, 35, 0.25);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-block { display: block; width: 100%; }

.center-actions { text-align: center; margin-top: 34px; }

/* ---------- 通用区块 ---------- */
section { padding: 74px 0; }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 660px;
  margin: 0 auto;
}

.bg-soft { background: var(--bg-soft); }

/* ---------- 卡片栅格 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 26px;
}
.grid-4-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 22px;
}

/* ---------- 服务卡片 ---------- */
.card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(11, 52, 89, 0.06);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: var(--accent);
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { width: 100%; }

.card .ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  transition: var(--transition);
}
.card:hover .ico { background: var(--primary); color: #fff; }
.card h3 { font-size: 19px; color: var(--primary); margin-bottom: 12px; font-weight: 600; }
.card p { color: var(--text-mid); font-size: 15px; }

/* 图标色系 */
.card .ico.tint-orange { background: #fdeee7; color: var(--accent); }
.card:hover .ico.tint-orange { background: var(--accent); color: #fff; }
.card .ico.tint-teal { background: #e3f4f4; color: #16777b; }
.card:hover .ico.tint-teal { background: #16777b; color: #fff; }
.card .ico.tint-green { background: #e7f6ec; color: #1c7a3e; }
.card:hover .ico.tint-green { background: #1c7a3e; color: #fff; }

/* ---------- 优势 ---------- */
.adv-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.adv-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.adv-item .ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 6px;
  transition: var(--transition);
}
.adv-item:hover .ico { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.adv-item h4 { font-size: 17px; color: var(--primary); margin: 12px 0 8px; font-weight: 600; }
.adv-item p { color: var(--text-mid); font-size: 14.5px; }

/* ---------- 转化条 ---------- */
.cta-block {
  background:
    radial-gradient(700px 400px at 20% 120%, rgba(217, 83, 35, 0.35), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, #0d3d66 100%);
  color: #fff;
  text-align: center;
  padding: 84px 24px;
  position: relative;
  overflow: hidden;
}
.cta-block h2 { font-size: 30px; margin-bottom: 16px; font-weight: 650; }
.cta-block p {
  max-width: 720px;
  margin: 0 auto 30px;
  opacity: 0.92;
  font-size: 17px;
}

/* ---------- 正文内容区 ---------- */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
}
.page-content strong { color: var(--primary); font-weight: 600; }

.check-list { list-style: none; margin: 24px 0; }
.check-list li {
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d95323' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
  align-items: center;
}
.flow .step {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
}
.flow .arrow { color: var(--accent); font-weight: 700; }

/* ---------- 表单 ---------- */
.form-box {
  background: var(--primary-soft);
  padding: 30px;
  border-radius: var(--radius-md);
}
.form-title {
  font-size: 19px;
  color: var(--primary);
  font-weight: 650;
  margin-bottom: 20px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
  color: var(--text-dark);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 52, 89, 0.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .err {
  color: var(--accent);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}
.field.invalid input,
.field.invalid textarea { border-color: var(--accent); }
.field.invalid .err { display: block; }

.form-note { font-size: 13px; color: var(--text-light); margin-top: 10px; }

.form-success {
  display: none;
  background: #e7f6ec;
  border: 1px solid #b7e3c6;
  color: #1c7a3e;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- 免费体检 / 联系 双栏 ---------- */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.checkup-panel {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}
.checkup-panel h3 {
  font-size: 19px;
  color: var(--primary);
  font-weight: 650;
  margin-bottom: 4px;
}
.checkup-panel .note-line { font-size: 14.5px; color: var(--text-mid); margin: 8px 0; }
.checkup-panel .note-phone {
  font-size: 15px;
  color: var(--text-dark);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.checkup-panel .note-phone a {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.checkup-panel .note-phone a:hover { text-decoration: underline; }
.checkup-panel .person { color: var(--text-mid); margin-left: 4px; }

/* ---------- 客户案例轮播 ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 8px; }

.case-card {
  flex: 0 0 min(360px, 86%);
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(11, 52, 89, 0.06);
  transition: var(--transition);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.case-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.case-visual svg { position: relative; z-index: 1; opacity: 0.95; }
.case-visual.v1 { background: linear-gradient(135deg, #0b3459, #164b7a); }
.case-visual.v2 { background: linear-gradient(135deg, #164b7a, #2a6ea8); }
.case-visual.v3 { background: linear-gradient(135deg, #b23f16, #d95323); }
.case-visual.v4 { background: linear-gradient(135deg, #124a40, #1c7a3e); }

.case-body { padding: 24px; }
.case-body .case-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.case-body h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.case-body p { color: var(--text-mid); font-size: 14.5px; }

.carousel-nav { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-nav button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- 博客卡片 ---------- */
.blog-card { cursor: pointer; }
.blog-card .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- 联系信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info .item .ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-info .item .txt { min-width: 0; }
.contact-info .item .txt strong {
  display: block;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.contact-info .item .txt span,
.contact-info .item .txt a {
  color: var(--text-mid);
  font-size: 14.5px;
  text-decoration: none;
  word-break: break-all;
}
.contact-info .item .txt a:hover { color: var(--accent); }

/* ---------- 页脚 ---------- */
footer {
  background: var(--text-dark);
  color: #cbd5e0;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}
footer p { font-size: 14.5px; margin: 8px 0; line-height: 1.8; }
footer a { color: #cbd5e0; text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--accent-soft); }
.footer-links a {
  display: block;
  margin: 6px 0;
  font-size: 14.5px;
  color: #cbd5e0;
}
.footer-links .area-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e0;
  font-size: 13.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 6px 8px 0;
}
.copyright {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: #a0aec0;
}
/* 备案号：低调但看得出可点（工信部要求备案号链接备案系统） */
.copyright a {
  color: #a0aec0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
  transition: var(--transition);
}
.copyright a:hover { color: var(--accent-soft); border-bottom-color: currentColor; }

/* ---------- 返回顶部 ---------- */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
#toTop.show { opacity: 1; visibility: visible; }
#toTop:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- 移动端底部 CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(11, 52, 89, 0.14);
  display: none;
  padding: 10px 16px;
  z-index: 950;
  border-top: 1px solid var(--line-soft);
}
.mobile-cta .row { display: flex; gap: 10px; }
.mobile-cta .btn { width: 100%; }
.mobile-cta .btn-outline-mini {
  flex: 0 0 auto;
  background: #f0f4f8;
  color: var(--primary);
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    box-shadow: var(--shadow-md);
    display: none;
    gap: 6px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .menu-btn { display: block; }

  .split-2,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .banner { padding: 64px 0 72px; }
  .banner h1 { font-size: 29px; }
  .banner p { font-size: 16px; }
  .banner-actions { gap: 12px; }
  .btn { width: 100%; }
  .btn-outline { width: 100%; }
  .banner-stats { gap: 24px; }
  .banner-stats .num { font-size: 24px; }

  section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 26px; }
  .cta-block { padding: 60px 20px; }
  .cta-block h2 { font-size: 24px; }
  .cta-block .btn { width: auto; }

  .form-box, .checkup-panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
  #toTop { bottom: 84px; }
}
