/* 上海缘领科技有限公司官网 — 商务科技风
   主色藏青 #0B2545 / 强调蓝 #1E5EFF / 中性灰 #5A6B8C */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1E5EFF;
  --gray: #5A6B8C;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --card-shadow: 0 2px 12px rgba(11, 37, 69, .08);
  --radius: 12px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--bg);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 固定导航 ---------- */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .25s, box-shadow .25s;
  background: transparent;
}
#site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
#site-nav.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(11, 37, 69, .1);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
#site-nav.scrolled .nav-logo { color: var(--navy); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
#site-nav.scrolled .nav-links a { color: var(--gray); }
#site-nav.scrolled .nav-links a:hover { color: var(--blue); }
/* 滚动高亮：当前区块对应的导航链接 */
.nav-links a.active { color: var(--blue); font-weight: 700; }

#nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: background .2s;
}
#site-nav.scrolled #nav-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
#home {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B2545, #13315C);
  color: #fff;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  position: relative;
  overflow: hidden;
}
#home::after {
  content: "";
  position: absolute;
  right: -180px; top: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 94, 255, .35), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 24px;
}
#home h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
#home h1 em {
  font-style: normal;
  color: #7EA2FF;
}
.hero-sub {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 94, 255, .35);
}
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { border-color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--gray); font-size: 16px; }

/* 渐入动画：默认全部可见（无 JS 时降级安全）；
   JS 启动后在 <html> 上加 data-js，此时先隐藏再由 IntersectionObserver 渐入 */
[data-js] .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-js] .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- 关于我们 ---------- */
#about .about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  color: var(--gray);
  margin-bottom: 56px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  background: var(--bg);
  border: 1px solid #EDF1F7;
  border-radius: var(--radius);
  padding: 32px 16px;
  box-shadow: var(--card-shadow);
}
.stat-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.stat-num sup { font-size: 20px; }
.stat-label { display: block; margin-top: 8px; color: var(--gray); font-size: 14px; }

/* ---------- 核心服务 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11, 37, 69, .14);
}
.card-icon {
  color: var(--blue);
  background: rgba(30, 94, 255, .1);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }

/* ---------- 行业方案 ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--blue);
}
.solution h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.solution h3::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--blue);
}
.solution p { color: var(--gray); font-size: 15px; }

/* ---------- 联系我们 ---------- */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.info-item { margin-bottom: 28px; }
.info-item h3 { font-size: 15px; color: var(--blue); font-weight: 600; margin-bottom: 6px; letter-spacing: 1px; }
.info-item p, .info-item a { color: var(--navy); font-size: 15px; text-decoration: none; }
.info-item a:hover { color: var(--blue); }

.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #D7DEEA;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, .15);
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }
.form-hint { margin-top: 12px; font-size: 13px; color: var(--gray); text-align: center; }
.form-hint.error { color: #e02020; font-weight: 500; }
.form-hint.success { color: #0a8f3c; }

/* ---------- 页脚 ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
}
.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-brand p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--blue); }
.footer-plain {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  padding: 4px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: rgba(255, 255, 255, .75);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(30, 94, 255, .4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- 响应式（追加） ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  #about .about-body { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}
@media (max-width: 768px) {
  #nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 37, 69, .12);
    padding: 16px 24px 20px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #EDF1F7;
    color: var(--navy);
  }
  #site-nav.scrolled .nav-links a { color: var(--navy); }
  #nav-toggle span { background: currentColor; }
  /* 透明态 logo 保持白色（压在深蓝 Hero 渐变上），.scrolled 已覆盖为 navy */
  .nav-logo { color: #fff; }
  #home { min-height: 80vh; padding: calc(var(--nav-h) + 48px) 0 72px; }
}

/* ---------- WordPress 模板扩展样式 ---------- */
.listing-page, .single-page, .page-view, .error-404 {
  padding: calc(var(--nav-h) + 48px) 0 64px;
}
.listing-container, .page-container { max-width: 960px; }
.listing-hero { text-align: center; margin-bottom: 40px; }
.listing-title { font-size: 32px; color: var(--navy); }
.listing-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.listing-main { display: flex; flex-direction: column; gap: 32px; }
.post-card { background: var(--bg); border: 1px solid #e6ebf2; border-radius: var(--radius); padding: 24px 28px; }
.post-card-head { margin-bottom: 12px; }
.post-title { font-size: 22px; margin-bottom: 6px; }
.post-title a { color: var(--navy); text-decoration: none; }
.post-title a:hover { color: var(--blue); }
.post-meta { color: var(--gray); font-size: 13px; }
.post-thumb { display: block; margin: 12px 0; }
.post-thumb img { width: 100%; border-radius: var(--radius); }
.post-full { background: var(--bg); border-radius: var(--radius); padding: 40px; }
.post-full-title { font-size: 36px; color: var(--navy); margin-bottom: 8px; }
.post-full-head { border-bottom: 1px solid #e6ebf2; padding-bottom: 20px; margin-bottom: 24px; }
.post-full-thumb { margin: 24px 0; }
.post-full-thumb img { width: 100%; border-radius: var(--radius); }
.post-full-body { line-height: 1.8; }
.post-full-body p, .page-full-body p { margin-bottom: 1em; }
.post-full-body blockquote { border-left: 3px solid var(--blue); padding-left: 16px; margin: 1em 0; color: var(--gray); }
.post-full-body img { max-width: 100%; border-radius: 8px; }
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e6ebf2; }
.comments-section h2 { font-size: 24px; color: var(--navy); margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment { padding: 16px; border: 1px solid #e6ebf2; border-radius: var(--radius); margin-bottom: 12px; }
.comment-meta { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.comment-reply-link { color: var(--blue); font-size: 13px; }
.comment-form { margin-top: 24px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d5dde8; border-radius: 8px; font-family: inherit; margin-bottom: 12px; }
.comment-form .submit { background: var(--blue); color: #fff; padding: 10px 24px; border: 0; border-radius: 8px; cursor: pointer; font-size: 15px; }
.related-section { margin-top: 48px; }
.related-title { margin-bottom: 20px; }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.no-results { color: var(--gray); padding: 40px 0; text-align: center; }
.error-404 .error-inner { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 96px; color: var(--blue); }
.error-404 .error-msg { color: var(--gray); margin: 12px 0 32px; font-size: 18px; }
.search-form { display: flex; gap: 8px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); }
.search-input { flex: 1; padding: 10px 12px; border: 1px solid #d5dde8; border-radius: 8px; }
.search-submit { padding: 10px 20px; background: var(--blue); color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .listing-body { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
/* 页脚若使用 WP 自定义菜单（输出 <ul>），保持与静态页普通链接一致的外观 */
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul a { display: block; }
