/* =========================================================
   岚度视觉数字科技官网 · 全站布局共享样式 layout.css
   包含：CSS变量覆盖 / body / 工具类 / Logo品牌 /
         顶部导航(header/nav/dropdown) / 页脚(footer) /
         回到顶部按钮 / 移动端汉堡菜单
   主题：浅色科技风（白底 + 蓝色品牌色，现代干净）
   所有页面统一引入此文件，确保页眉页脚一致
========================================================= */

/* =============== CSS 变量覆盖（浅色白蓝主题） =============== */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --border-color: #E2E8F0;
  --border-color-light: #EDEFF2;
  --border-blue: rgba(37, 99, 235, 0.2);

  --container-max: 1120px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}
body::before, body::after { display: none; }

/* =============== 工具类 =============== */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }

/* =============== Logo 品牌样式 =============== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.r-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.brand-en { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; font-weight: 500; margin-top: 2px; }

/* =============== 顶部导航 =============== */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  gap: 28px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu > li {
  position: relative;
  list-style: none;
}
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu > li > a:hover {
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.06);
}
.nav-menu > li.active > a {
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.dropdown-wrapper:hover > a .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  list-style: none;
}
.dropdown-wrapper:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
}
.btn-header-cta {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
}
.hamburger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
  .btn-header-cta { padding: 0 16px; font-size: 13px; }
}

/* =============== 页脚 =============== */
.site-footer-v2 {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding-top: 72px;
  margin-top: 20px;
}
.footer-grid-v2 {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.95fr 1.55fr;
  gap: 28px;
  padding-bottom: 48px;
}
.footer-brand-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 16px;
}
.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-col ul li { list-style: none; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--brand-blue); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-contact-item i {
  color: var(--brand-blue);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom-v2 {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 24px;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--brand-blue); }

@media (max-width: 900px) {
  .footer-grid-v2 { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid-v2 { grid-template-columns: 1fr; }
  .footer-bottom-v2 { flex-direction: column; text-align: center; }
  .footer-legal a { margin: 0 8px; }
}

/* =============== 回到顶部按钮 =============== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  border: none;
  font-size: 16px;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* =============== 内页通用 Hero =============== */
.page-hero-v2 {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E5E7EB;
  position: relative;
}
.page-hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero-v2 h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
  margin: 16px 0;
  letter-spacing: -0.01em;
}
.page-hero-v2 h1 .accent {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.max800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* =============== v2-section & section 三件套 =============== */
.v2-section { padding: 88px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }

/* =============== 面包屑浅色系 =============== */
.breadcrumb {
  padding-top: 100px;
  padding-bottom: 12px;
}
.breadcrumb.container {
  max-width: 1100px;
  padding: 100px 20px 12px;
  font-size: 13px;
}
.breadcrumb.container a,
.breadcrumb.container span,
.breadcrumb.container i {
  font-size: 13px;
}

/* =============== 非首页容器缩窄 =============== */
@media (min-width: 992px) {
  main .container,
  .page-main .container,
  .section .container,
  .v2-section .container {
    max-width: 1100px;
  }
}

/* =============== 深色内容块改造为浅色卡片 =============== */
.section, .section-sm {
  background: transparent !important;
}
.section[style*="rgba(17,24,39"],
.section-sm[style*="rgba(17,24,39"] {
  background: linear-gradient(180deg, transparent, #F8FAFC 50%, transparent) !important;
}
.card, .advantage-card, .deliverable-card, .service-card, .case-card, .contact-info-card, .social-qr-card, .faq-item, .milestone, .process-step, .adv-card, .about-snapshot, .brand-item, .blog-card, .timeline-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
}
.form-hints {
  background: var(--bg-secondary) !important;
}
