/* ============================================================
   官网首页样式 · 深圳荣易网络有限公司
   科技蓝主色 + 中性色辅色 · 全响应式
   ============================================================ */

:root {
  /* 色板 */
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eaf1ff;
  --accent: #38bdf8;
  --accent-cyan: #22d3ee;
  --ink: #0a1b33;            /* 深蓝黑 */
  --ink-2: #0f2a52;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-muted: #eef2fb;
  --text: #0b1e3c;
  --text-muted: #5b6b85;
  --line: #e6ebf5;

  /* 排版 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Hiragino Sans GB", -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;

  /* 布局 */
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 12px rgba(12, 38, 90, 0.06);
  --shadow-md: 0 12px 34px rgba(12, 38, 90, 0.12);
  --shadow-lg: 0 24px 60px rgba(12, 38, 90, 0.18);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  --header-fg: #fff;
  --header-muted: rgba(255, 255, 255, .78);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  --header-fg: var(--text);
  --header-muted: var(--text-muted);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  color: var(--header-fg);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: color .35s ease;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  color: var(--header-fg);
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: color .25s ease, background .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--accent-cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 搜索框（已登录显示） */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  gap: 8px;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled .header-search {
  background: #fff;
  border-color: var(--line);
}
.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--header-fg);
  font-size: 14px;
  width: 168px;
  transition: color .3s ease;
}
.site-header.scrolled .header-search input { color: var(--text); }
.header-search input::placeholder { color: var(--header-muted); }
.header-search button {
  border: 0;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .15s ease;
}
.header-search button:hover { background: var(--primary-strong); transform: scale(1.04); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-fg);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: color .3s ease, border-color .3s ease;
}
.site-header.scrolled .user-chip { color: var(--text); border-color: var(--line); }
.user-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .32);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 10px 28px rgba(37, 99, 235, .42); }
.btn-ghost {
  background: transparent;
  color: var(--header-fg);
  border-color: rgba(255, 255, 255, .4);
}
.site-header.scrolled .btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-login {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-login:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--header-fg);
  transition: transform .25s ease, opacity .25s ease;
}
.site-header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.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(--header-h) + 48px) 0 88px;
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(56, 189, 248, .22), transparent 55%),
    radial-gradient(900px 520px at 8% 108%, rgba(37, 99, 235, .30), transparent 58%),
    linear-gradient(158deg, #081527 0%, #0e2a52 52%, #0c2340 100%);
  color: #fff;
  overflow: hidden;
}
.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: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb.a { top: -120px; right: -60px; background: #2563eb; }
.hero-orb.b { bottom: -160px; left: -80px; background: #22d3ee; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-28px) translateX(16px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .3);
  margin-bottom: 26px;
}
.hero-kicker::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .25);
}

.hero-title {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-title .grad {
  background: linear-gradient(92deg, #38bdf8 0%, #7dd3fc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .82);
  max-width: 640px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-hero {
  padding: 13px 30px;
  font-size: 16px;
  background: linear-gradient(92deg, #2563eb, #38bdf8);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .45);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(37, 99, 235, .55); }
.btn-hero-outline {
  padding: 13px 30px;
  font-size: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
}
.btn-hero-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.hero-stat .num em { font-style: normal; color: var(--accent-cyan); font-size: 20px; margin-left: 2px; }
.hero-stat .label { font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 4px; }

/* 入场动画 */
.reveal-up { opacity: 0; transform: translateY(26px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .reveal-up:nth-child(1) { animation-delay: .05s; }
.hero .reveal-up:nth-child(2) { animation-delay: .15s; }
.hero .reveal-up:nth-child(3) { animation-delay: .25s; }
.hero .reveal-up:nth-child(4) { animation-delay: .35s; }
.hero .reveal-up:nth-child(5) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- 分段通用 ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--text-muted); line-height: 1.9; }

/* ---------- 业务 ---------- */
.business { background: var(--bg-soft); }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.biz-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.biz-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity .3s ease;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.biz-card:hover::before { opacity: 1; }
.biz-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), #e6f4ff);
}
.biz-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.biz-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.85; margin-bottom: 18px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags span {
  font-size: 12.5px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .14);
}

/* ---------- 公司介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.about-text h3 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.about-text p { font-size: 15.5px; color: var(--text-muted); line-height: 2; margin-bottom: 14px; }
.about-text p strong { color: var(--text); }
.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.val {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.val .t { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.val .d { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.about-panel {
  position: relative;
  background: linear-gradient(160deg, #0a1b33, #0f2a52);
  border-radius: 22px;
  padding: 40px 36px;
  color: #fff;
  overflow: hidden;
}
.about-panel::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 70%);
}
.about-panel .logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.about-panel .logo-row .brand-logo { width: 52px; height: 52px; border-radius: 14px; }
.about-panel .company { font-size: 20px; font-weight: 800; }
.about-panel .sub { font-size: 13px; color: rgba(255, 255, 255, .66); margin-top: 2px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact .k { font-size: 13px; color: rgba(255, 255, 255, .6); }
.fact .v { font-size: 20px; font-weight: 800; margin-top: 4px; }
.fact .v small { font-size: 13px; font-weight: 500; color: var(--accent-cyan); margin-left: 2px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #081527;
  color: rgba(255, 255, 255, .72);
  padding: 68px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.9; max-width: 340px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255, 255, 255, .66);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent-cyan); }
.footer-col .info-line { font-size: 14px; padding: 6px 0; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  flex-wrap: wrap;
}

/* 提示 toast（搜索校验反馈） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(10, 27, 51, .94);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 滚动显现 */
.js-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .container { max-width: 960px; }
  .biz-grid { gap: 20px; }
}

@media (max-width: 991px) {
  .nav-links { margin-left: auto; }
  .biz-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    padding: 12px 20px 20px;
    margin: 0;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--text); padding: 12px 16px; }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }

  /* 导航内的搜索在移动端隐藏，改用 hero 下方的移动搜索条 */
  .header-search { display: none; }
  .user-chip .uname { display: none; }

  .mobile-search {
    margin-top: 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
  }
  .mobile-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    color: #fff; font-size: 15px;
  }
  .mobile-search input::placeholder { color: rgba(255, 255, 255, .6); }
  .mobile-search button {
    border: 0; height: 40px; width: 40px; border-radius: 50%;
    background: linear-gradient(92deg, #2563eb, #38bdf8);
    color: #fff; font-size: 16px;
  }

  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-stats { gap: 26px; }
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .about-panel { padding: 30px 26px; }
}

@media (min-width: 768px) {
  .mobile-search { display: none !important; }
}