/* ===== 3D 数字化展厅 · 首页 ===== */
:root {
  --primary: #4f6bff;
  --primary-dark: #2d5a9e;
  --navy: #12203f;
  --text: #2a2d35;
  --muted: #6b7280;
  --border: #e6e8ee;
  --bg: #f7f8fb;
}

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

html { scroll-behavior: smooth; }

/* 首页模式检查期间隐藏内容，避免「首页展示→强制登录」时闪一下 */
html.pre-check body { visibility: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(18, 32, 63, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #7a5cff);
  color: #fff; font-weight: 700; font-size: 13px;
  border-radius: 8px;
}
.logo-text { color: #fff; font-weight: 600; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 12px; }

/* ===== 按钮 ===== */
.btn {
  border: none; cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  padding: 10px 20px;
  transition: all .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #7a5cff); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,107,255,.35); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; padding: 12px; margin-top: 6px; }

/* ===== 首屏 ===== */
.hero {
  padding: 140px 24px 90px;
  background: radial-gradient(1200px 600px at 80% -10%, #274a8f 0%, transparent 55%),
              linear-gradient(160deg, #12203f 0%, #1b2f56 50%, #23406e 100%);
  color: #fff;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 46px; font-weight: 700; line-height: 1.25; }
.hero .highlight {
  background: linear-gradient(90deg, #6ea8ff, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin: 22px auto 0; font-size: 17px; color: rgba(255,255,255,.8); max-width: 640px; line-height: 1.8; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: rgba(255,255,255,.65); font-size: 14px; }

/* ===== 通用区块 ===== */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--muted); }

.features { padding: 80px 24px; background: #fff; }
.feature-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18,32,63,.10); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(79,107,255,.10);
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ===== 合作客户 ===== */
.clients { padding: 80px 24px; background: var(--bg); }
.client-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .2s;
  cursor: pointer;
}
.client-card:hover { box-shadow: 0 10px 26px rgba(18,32,63,.08); border-color: #cfd6ff; }
.client-avatar {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #7a5cff);
  color: #fff; font-weight: 700;
  overflow: hidden;
}
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-name { font-weight: 600; font-size: 15px; line-height: 1.4; }
.client-enter { margin-left: auto; color: var(--primary); font-size: 13px; white-space: nowrap; }
.client-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 20px; }

/* ===== CTA ===== */
.cta { padding: 80px 24px; background: linear-gradient(135deg, #12203f, #23406e); color: #fff; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: 30px; }
.cta p { margin: 14px 0 30px; color: rgba(255,255,255,.75); }

/* ===== 页脚 ===== */
.footer { padding: 26px 24px; text-align: center; color: var(--muted); font-size: 13px; background: #0d1730; }
.footer-inner { color: rgba(255,255,255,.5); }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.modal-box {
  position: relative;
  width: 92%;
  max-width: 440px;
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 30px 32px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  max-height: 86vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  border: none; background: none;
  font-size: 26px; color: #9ca3af; cursor: pointer;
}
.modal-title { font-size: 20px; margin-bottom: 20px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.field em { color: #ef4444; font-style: normal; }
.field small { color: #9ca3af; font-weight: normal; }
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,107,255,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-error { color: #ef4444; font-size: 13px; min-height: 18px; margin: 2px 0 6px; }
.modal-switch { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.modal-switch a { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .hero-meta { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
}
