/* ==========================================================================
   智飞云培（智飞云培）官方网站 - 全局公共样式 (SaaS 浅色商务标准版)
   参考设计基准：现代高可信度企业软件官网架构
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --navy: #24264f;
  --navy-dark: #181a36;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #f7f8fa;
  --soft: #eef0ff;
  --accent: #f79009;
  --accent-hover: #dc7600;
  --success: #12b76a;
  --danger: #f04438;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  --shadow-sm: 0 2px 8px rgba(23, 32, 51, 0.04);
  --shadow-hover: 0 16px 36px rgba(79, 70, 229, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==================== 顶部导航栏 (深色藏青高对比质感) ==================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(36, 38, 79, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

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

.nav-links a {
  color: #d7daf2;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #a5b4fc;
  border-radius: 2px;
}

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

.nav-actions .btn {
  min-height: 40px;
  padding: 7px 18px;
  font-size: 14px;
}

.nav-demo,
.nav-login,
.btn-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  transition: all 0.2s ease;
}

.nav-demo:hover,
.nav-login:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
}

/* ==================== 统一按钮规范 ==================== */
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(247, 144, 9, 0.26);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 22px rgba(247, 144, 9, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: #c7d2fe;
}

.btn-secondary:hover {
  background: var(--soft);
  border-color: #a5b4fc;
}

.btn-quiet {
  background: transparent;
  color: var(--primary);
  border-color: #c7d2fe;
}

.btn-quiet:hover {
  background: var(--soft);
  border-color: var(--primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==================== 布局板块通用类 ==================== */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--soft);
  padding: 4px 12px;
  border-radius: 20px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ==================== 页脚规范 (Footer) ==================== */
footer {
  padding: 64px 0 28px;
  background: var(--navy-dark);
  color: #c7cadf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 36px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 380px;
  color: #9aa1bc;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.footer-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  color: #9aa1bc;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #8f95ae;
  font-size: 13px;
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==================== 右下角常驻悬浮【咨询】组件 ==================== */
.contact-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.contact-toggle {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.contact-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 296px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  display: none;
  animation: floatIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-panel.open {
  display: block;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.contact-panel h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 800;
}

.contact-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* 微信顾问专属二维码卡片 */
.contact-qrcode-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  margin-bottom: 12px;
}

.contact-wx-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #07c160;
  margin-bottom: 8px;
}

.contact-qrcode-img-wrap {
  width: 148px;
  height: 148px;
  margin: 0 auto 8px;
  padding: 6px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.contact-wx-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #334155;
}

.contact-wx-id-row strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 13px;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.btn-copy-wx {
  padding: 2px 8px;
  border: none;
  background: #07c160;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-wx:hover {
  background: #059649;
  transform: scale(1.04);
}

.btn-copy-wx.copied {
  background: #2563eb;
}

.contact-wx-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: background 0.2s ease;
  text-decoration: none;
}

.contact-item:hover {
  background: var(--soft);
}

.contact-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.contact-item-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.contact-item-text strong {
  font-size: 13px;
  color: var(--ink);
}

/* 全局复制反馈 Toast 提示 */
.global-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== 响应式移动端适配 ==================== */
@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .nav-actions .nav-demo,
  .nav-actions .nav-login,
  .nav-actions .btn-outline {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 24px 28px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    padding: 12px 4px;
    color: #e4e7ec;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-menu .btn {
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==================== APP 客户端扫码下载模态弹窗 ==================== */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: appFadeIn 0.2s ease-out;
}

.app-modal-backdrop.active {
  display: flex;
}

.app-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  position: relative;
  animation: appScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.app-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-modal-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.app-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.app-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.app-modal-body {
  padding: 22px 26px;
}

.app-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.app-qr-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.app-qr-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.app-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.app-platform-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.app-platform-badge.ios {
  color: #0f172a;
}

.app-platform-badge.android {
  color: #059669;
}

.app-qr-box {
  width: 148px;
  height: 148px;
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-qr-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.app-modal-footer {
  padding: 14px 26px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

.app-modal-footer .app-detail-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-modal-footer .app-detail-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

@keyframes appFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes appScaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 580px) {
  .app-qr-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-modal-body {
    padding: 18px 16px;
  }
}