/* ============================================================
   武汉永乐超联科技有限公司 · 企业官网
   风格：简约白色现代风 | 响应式
   ============================================================ */

:root {
  --c-text: #1c2333;
  --c-text-2: #5a6478;
  --c-text-3: #9aa3b5;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f8fb;
  --c-line: #e8ecf2;
  --c-primary: #2563eb;
  --c-primary-dark: #1e4fd0;
  --c-accent: #7c3aed;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 35, 51, 0.08);
  --shadow-hover: 0 18px 44px rgba(37, 99, 235, 0.14);
  --nav-h: 68px;
  --grad: linear-gradient(120deg, var(--c-primary), var(--c-accent));
}

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

html { scroll-behavior: smooth; }

/* 锚点定位时避开固定导航栏 */
section[id] { scroll-margin-top: calc(var(--nav-h) + 10px); }

/* 文本选中色 */
::selection { background: rgba(37, 99, 235, 0.18); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ccd5e3; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b3bfd4; }
::-webkit-scrollbar-track { background: transparent; }

/* 键盘可达性 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: var(--c-primary); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 4px; margin: 14px auto 0;
  border-radius: 2px; background: var(--grad);
}
.section-desc { margin-top: 18px; color: var(--c-text-2); font-size: 15px; }

.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  height: var(--nav-h); background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--c-line); box-shadow: 0 4px 20px rgba(28, 35, 51, 0.06); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; }
.brand-text small { font-size: 10px; color: var(--c-text-3); letter-spacing: 2px; }

.nav-links { margin-left: auto; display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--c-text-2);
  transition: all 0.25s ease;
}
.nav-links a:hover { color: var(--c-primary); background: rgba(37, 99, 235, 0.07); }
.nav-links a.active { color: var(--c-primary); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--c-primary); background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25); cursor: pointer; transition: all 0.25s ease;
}
.lang-switch:hover { background: var(--c-primary); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--c-text); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 100px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250, 251, 253, 0.96) 0%, rgba(250, 251, 253, 0.88) 38%, rgba(250, 251, 253, 0.35) 72%, rgba(250, 251, 253, 0.05) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1180px; }
.hero-tag {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--c-primary);
  background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.22);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.28;
  letter-spacing: 1px; max-width: 620px;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; max-width: 560px; color: var(--c-text-2); font-size: 16px; }
.hero-btns { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 18px; max-width: 760px;
}
.stat {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 20px;
}
.stat strong { font-size: 28px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { font-size: 14px; }
.stat span { display: block; font-size: 13px; color: var(--c-text-2); margin-top: 2px; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.mouse {
  display: block; width: 24px; height: 40px; border: 2px solid var(--c-text-3);
  border-radius: 14px; position: relative;
}
.mouse i {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--c-primary); border-radius: 2px; animation: wheel 1.6s ease infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 服务卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 34px 28px; transition: all 0.35s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--grad); transition: width 0.35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  color: var(--c-primary);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--c-text-2); }

/* ---------- 核心优势 ---------- */
.adv-item {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid var(--c-line); transition: all 0.35s ease;
}
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.adv-num {
  font-size: 34px; font-weight: 800; display: inline-block; margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.adv-item h3 { font-size: 18px; margin-bottom: 10px; }
.adv-item p { font-size: 14px; color: var(--c-text-2); }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; }
.about-text h3 { font-size: 24px; margin-bottom: 18px; }
.about-text p { color: var(--c-text-2); font-size: 15px; margin-bottom: 14px; text-align: justify; }
.about-kv { margin-top: 28px; display: grid; gap: 12px; }
.kv {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 20px;
}
.kv span {
  flex: none; font-size: 13px; font-weight: 600; color: var(--c-primary);
  background: rgba(37, 99, 235, 0.08); padding: 4px 12px; border-radius: 999px;
}
.kv strong { font-size: 15px; }

.about-timeline {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.about-timeline h4 { font-size: 20px; margin-bottom: 22px; }
.timeline { list-style: none; position: relative; padding-left: 26px; flex: 1; display: flex; flex-direction: column; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  opacity: 0.35; border-radius: 1px;
}
.timeline li { position: relative; padding-bottom: 22px; flex: 1; }
.timeline li:last-child { padding-bottom: 0; flex: 0 0 auto; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--c-primary);
}
.tl-year { font-weight: 800; color: var(--c-primary); font-size: 15px; }
.timeline p { font-size: 14px; color: var(--c-text-2); margin-top: 2px; }

/* ---------- 联系我们 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: stretch; }
.contact-info { display: grid; gap: 14px; grid-template-rows: repeat(4, 1fr); }
.c-item {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 20px 22px; transition: all 0.3s ease;
}
.c-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.c-ico { font-size: 22px; line-height: 1.4; color: var(--c-primary); }
.c-ico svg { width: 22px; height: 22px; margin-top: 2px; }
.c-item h4 { font-size: 14px; color: var(--c-text-3); font-weight: 600; }
.c-item p { font-size: 15px; margin-top: 2px; }

.contact-form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 20px; margin-bottom: 22px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; margin-bottom: 14px;
  border: 1px solid var(--c-line); border-radius: 10px; font-size: 14px;
  font-family: inherit; color: var(--c-text); background: var(--c-bg-alt);
  transition: all 0.25s ease; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-tip { margin-top: 12px; font-size: 12px; color: var(--c-text-3); }

/* ---------- 页脚 ---------- */
.footer { background: #10141d; color: #c8cfdd; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 44px 0 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { font-size: 13px; color: #8b94a7; margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #c8cfdd; transition: color 0.25s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: #8b94a7; }
.icp-link { color: #8b94a7; transition: color 0.25s ease; }
.icp-link:hover { color: #fff; }

/* ---------- 返回顶部 & 滚动动效 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 18px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 用户偏好减弱动效时关闭动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 98;
    flex-direction: column; gap: 0; padding: 10px 4%;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 20px); min-height: auto; padding-bottom: 80px; }
  .hero-stats { margin-top: 44px; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
