/* ============================================================
   首新科技 shouxinxx.top 官网首页样式
   ============================================================ */
:root {
  --primary: #3b5bfd;
  --primary-dark: #2c46c9;
  --primary-soft: #eef1ff;
  --teal: #22c1c3;
  --violet: #8b5cf6;
  --text: #1c2333;
  --text-2: #5a6478;
  --text-3: #8a94a8;
  --bg: #ffffff;
  --bg-alt: #f5f7ff;
  --border: #e6eaf5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 35, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(59, 91, 253, 0.16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d5bff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 91, 253, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(59, 91, 253, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(28, 35, 51, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #6d5bff);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(59, 91, 253, 0.35);
}
.brand-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 1.4px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: var(--primary-soft);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f3ff 0%, #eaf6ff 45%, #f4f1ff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 340px at 82% 18%, rgba(59, 91, 253, 0.16), transparent 65%),
    radial-gradient(480px 320px at 12% 88%, rgba(34, 193, 195, 0.14), transparent 65%),
    radial-gradient(420px 300px at 55% 110%, rgba(139, 92, 246, 0.12), transparent 65%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
}
.hero-bg::before {
  width: 260px; height: 260px;
  left: -70px; top: 40%;
  border: 2px dashed rgba(59, 91, 253, 0.25);
  animation: spin 40s linear infinite;
}
.hero-bg::after {
  width: 140px; height: 140px;
  right: 8%; bottom: -40px;
  border: 2px dashed rgba(34, 193, 195, 0.35);
  animation: spin 26s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(59, 91, 253, 0.18);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(59, 91, 253, 0.08);
}
.hero h1 {
  font-size: 46px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(120deg, var(--primary), #6d5bff, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero 扫码下载卡片 */
.hero-dl {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 24px 14px 14px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-dl:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 91, 253, 0.35);
  box-shadow: var(--shadow-lg);
}
.hero-dl img { width: 88px; height: 88px; border-radius: 12px; }
.hero-dl-txt { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.hero-dl-txt strong { font-size: 17px; color: var(--text); font-weight: 800; }
.hero-dl-txt span { font-size: 13px; color: var(--text-3); }
.hero-dl-go {
  margin-left: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-dl-go i { font-style: normal; transition: transform .25s ease; }
.hero-dl:hover .hero-dl-go i { transform: translateX(4px); }

/* Hero 右侧可视化卡片 */
.hero-visual { position: relative; min-height: 380px; }
.visual-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.vc-main {
  position: absolute;
  inset: 12px 6% 20px 14%;
  padding: 18px;
  transform: rotate(-2deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}
.vc-head { display: flex; gap: 6px; margin-bottom: 16px; }
.vc-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3e8f5; }
.vc-dot:nth-child(1) { background: #ff8a8a; }
.vc-dot:nth-child(2) { background: #ffd166; }
.vc-dot:nth-child(3) { background: #6ee7b7; }
.vc-body { display: flex; flex-direction: column; gap: 12px; }
.vc-row { display: flex; align-items: center; gap: 10px; }
.vc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6d5bff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.vc-a2 { background: linear-gradient(135deg, #10b981, #22c1c3); }
.vc-a3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.vc-line { height: 9px; border-radius: 6px; background: #eef1fa; }
.vc-line-w60 { width: 60%; }
.vc-line-w45 { width: 45%; }
.vc-line-w70 { width: 70%; }
.vc-bar {
  margin-top: 18px;
  height: 10px;
  border-radius: 6px;
  background: #eef1fa;
  overflow: hidden;
}
.vc-bar-fill {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  animation: fillbar 3.2s ease-in-out infinite alternate;
}
@keyframes fillbar { from { width: 46%; } to { width: 78%; } }

.vc-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.vf-ico { font-size: 17px; }
.vc-f1 { top: 6%; left: 0; animation: bob 4.5s ease-in-out infinite; }
.vc-f2 { top: 40%; right: 0; animation: bob 5.5s ease-in-out .6s infinite; }
.vc-f3 { bottom: 2%; left: 4%; animation: bob 5s ease-in-out 1.1s infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- 通用 section ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; }

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 91, 253, 0.35);
}
.f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 12%, #fff);
}
.f-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 平台入口 ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portal-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.portal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ic), transparent 80%);
  opacity: 0;
  transition: opacity .28s ease;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 91, 253, 0.35);
}
.portal-card:hover::before { opacity: 1; }
.portal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 12%, #fff);
}
.portal-ico svg { width: 30px; height: 30px; }
.portal-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.portal-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 22px; flex: 1; }
.portal-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-link i { font-style: normal; transition: transform .25s ease; }
.portal-card:hover .portal-link i { transform: translateX(5px); }

/* ---------- 客户端下载 ---------- */
.download-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(160deg, #ffffff, #f6f8ff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 50px;
  box-shadow: var(--shadow);
}
.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.download-qr-frame {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(59, 91, 253, 0.12);
}
.download-qr img {
  display: block;
  width: 196px;
  height: 196px;
  border-radius: 10px;
}
.download-qr .qr-caption {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  text-align: center;
}
.download-info { flex: 1; min-width: 0; }
.download-info h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}
.download-info > p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 22px;
  line-height: 1.75;
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.download-meta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--primary-soft);
  border: 1px solid #dfe6ff;
  padding: 7px 15px;
  border-radius: 999px;
}
.download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dl-hint { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ---------- 关于我们 ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(140deg, #f7f9ff, #f0f6ff);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 52px;
}
.about-copy .section-eyebrow { margin-bottom: 10px; }
.about-copy h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.about-copy p { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }
.about-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); font-weight: 500; }
.al-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  flex-shrink: 0;
}
.about-card {
  background: var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.ac-row:last-child { border-bottom: none; }
.ac-row span { color: var(--text-3); flex-shrink: 0; }
.ac-row b { font-weight: 600; text-align: right; }

/* ---------- 页脚 ---------- */
.site-footer { background: #131a2c; color: #aab3c8; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text em { color: #7b86a0; }
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.8; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.fl-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.fl-col a {
  display: block;
  font-size: 14px;
  color: #aab3c8;
  margin-bottom: 10px;
  transition: color .2s ease;
}
.fl-col a:hover { color: #6d9bff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
}
.footer-bottom a:hover { color: #6d9bff; }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 70px; }
  .hero-visual { min-height: 320px; margin-top: 10px; }
  .feature-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(28, 35, 51, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid #f2f4fb; font-size: 16px; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .feature-grid, .portal-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15.5px; }
  .hero-dl { margin-left: auto; margin-right: auto; }
  .hero-dl img { width: 64px; height: 64px; }
  .hero-dl-txt strong { font-size: 15px; }
  .footer-links { gap: 36px; }
  .download-wrap { flex-direction: column; gap: 30px; padding: 40px 26px; text-align: center; }
  .download-qr img { width: 168px; height: 168px; }
  .download-info h3 { font-size: 23px; }
  .download-info > p { font-size: 14.5px; }
  .download-meta { justify-content: center; }
  .download-actions { justify-content: center; }
}
