/* ==========================================================
   卓析智算 · 泰安卓析智算信息技术有限公司 官网
   深色科技风主题
   ========================================================== */

/* ---------- 变量与基础 ---------- */
:root {
  --bg-0: #060913;
  --bg-1: #0a0f1f;
  --bg-2: #0f1628;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text-1: #e9eefb;
  --text-2: #a3b0cf;
  --text-3: #6b7a9e;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-3: #8b5cf6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --radius: 16px;
  --nav-h: 72px;
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.12);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

::selection {
  background: rgba(99, 102, 241, 0.45);
  color: #fff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px rgba(56, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(56, 130, 246, 0.5);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}

.btn-lg {
  padding: 14px 34px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 19px;
  letter-spacing: 2px;
}

.logo-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a:not(.nav-cta) {
  font-size: 15px;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta).active {
  color: var(--text-1);
}

.nav-links > a:not(.nav-cta).active::after,
.nav-links > a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 6px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s 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;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(99, 102, 241, 0.16), transparent),
    var(--bg-0);
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 205, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  animation: float-glow 9s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: rgba(34, 211, 238, 0.14);
}

.hero-glow-2 {
  width: 560px;
  height: 560px;
  bottom: -200px;
  right: -140px;
  background: rgba(99, 102, 241, 0.16);
  animation-delay: -4.5s;
}

@keyframes float-glow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--accent);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 16px var(--accent);
  }
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(120deg, #22d3ee 10%, #818cf8 55%, #c084fc 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-flow 5s linear infinite;
}

@keyframes text-flow {
  to {
    background-position: 200% center;
  }
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-num {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 1px;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 108px 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.07), transparent),
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-tag {
  display: inline-block;
  padding: 5px 18px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- 核心业务 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--card-hover);
  box-shadow: var(--shadow-glow);
}

.service-card-featured {
  border-color: rgba(99, 102, 241, 0.45);
  background:
    linear-gradient(rgba(15, 22, 40, 0.92), rgba(15, 22, 40, 0.92)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.service-card-featured:hover {
  box-shadow: 0 12px 44px rgba(99, 102, 241, 0.28);
}

.service-flag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #061018;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--grad);
  letter-spacing: 1px;
}

.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 22px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.service-card > p {
  color: var(--text-2);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  flex: 1;
}

.service-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-2);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

.service-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.3s ease;
}

.service-link:hover {
  letter-spacing: 1px;
}

/* ---------- AI 数字员工 ---------- */
.staff-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px 42px;
  margin-bottom: 60px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(16, 24, 44, 0.94), rgba(16, 24, 44, 0.94)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.65), rgba(99, 102, 241, 0.65), rgba(139, 92, 246, 0.65)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(99, 102, 241, 0.14);
  overflow: hidden;
}

.staff-feature::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  filter: blur(80px);
  pointer-events: none;
}

.staff-feature-main {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.staff-icon-lg {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(56, 130, 246, 0.4);
}

.staff-icon-lg svg {
  width: 36px;
  height: 36px;
}

.staff-feature-flag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.staff-feature-text h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.staff-feature-text p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 22px;
}

.staff-feature-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.staff-feature-points {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.staff-feature-points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.staff-feature-points li:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.05);
  transform: translateX(4px);
}

.staff-feature-points strong {
  font-size: 14.5px;
  color: var(--text-1);
}

.staff-feature-points span {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.staff-grid-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-3);
  margin-bottom: 34px;
}

.staff-grid-label::before,
.staff-grid-label::after {
  content: "—";
  margin: 0 14px;
  color: var(--border);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.staff-card {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.35s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45);
  background: var(--card-hover);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.16);
}

.staff-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 18px;
}

.staff-icon svg {
  width: 25px;
  height: 25px;
}

.staff-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.staff-card p {
  font-size: 14px;
  color: var(--text-2);
}

.staff-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 40px;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.06);
}

.staff-cta-text h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.staff-cta-text p {
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 产品矩阵 ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: all 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-glow);
}

.product-cover {
  width: 168px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.product-cover svg {
  width: 56px;
  height: 56px;
  opacity: 0.92;
}

.cover-0 {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.32), rgba(139, 92, 246, 0.22));
}

.cover-1 {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.28), rgba(99, 102, 241, 0.14));
}

.cover-2 {
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.28), rgba(99, 102, 241, 0.12));
}

.cover-3 {
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.26), rgba(14, 165, 233, 0.1));
}

.cover-4 {
  background: linear-gradient(150deg, rgba(129, 140, 248, 0.26), rgba(34, 211, 238, 0.1));
}

.cover-5 {
  background: linear-gradient(150deg, rgba(192, 132, 252, 0.28), rgba(99, 102, 241, 0.12));
}

.cover-6 {
  background: linear-gradient(150deg, rgba(52, 211, 153, 0.24), rgba(34, 211, 238, 0.1));
}

.cover-7 {
  background: linear-gradient(150deg, rgba(244, 114, 182, 0.24), rgba(251, 146, 60, 0.1));
}

.cover-8 {
  background: linear-gradient(150deg, rgba(250, 204, 21, 0.22), rgba(52, 211, 153, 0.1));
}

.product-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
}

.product-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.product-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.product-body > p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.product-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.product-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-3);
}

.product-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--accent-2);
}

/* 通栏主推产品卡（卓析 AI 办公助手） */
.product-card-wide {
  grid-column: 1 / -1;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(16, 24, 44, 0.94), rgba(16, 24, 44, 0.94)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.6), rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6)) border-box;
}

.product-card-wide:hover {
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.22);
}

.product-card-wide .product-cover {
  width: 200px;
}

.product-card-wide .product-body {
  flex: 1;
}

.product-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px 34px;
  border-left: 1px solid var(--border);
}

.product-side-tip {
  font-size: 13px;
  color: var(--text-3);
}

/* 小程序产品卡（雾见叙心） */
.product-side-qr img {
  width: 128px;
  height: 128px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-miniapp:hover .product-side-qr img {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(192, 132, 252, 0.3);
}

/* 已上线产品半宽卡（雾见叙心 / JSUnpack） */
.product-card-live {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(16, 24, 44, 0.94), rgba(16, 24, 44, 0.94)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(139, 92, 246, 0.55)) border-box;
}

.product-card-live:hover {
  box-shadow: 0 14px 44px rgba(99, 102, 241, 0.2);
}

.product-card-live .product-cover {
  width: 116px;
}

.product-card-live .product-side {
  padding: 22px 24px;
}

.product-card-live .product-side-qr img {
  width: 106px;
  height: 106px;
}

.product-card-live .product-body {
  padding: 22px 22px 20px;
}

.product-card-live .product-body > p {
  font-size: 13.5px;
}

.product-card-live .product-points li {
  font-size: 12.8px;
}

/* ---------- 定制流程 ---------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(34, 211, 238, 0.4) 15%,
    rgba(99, 102, 241, 0.5) 85%, transparent);
}

.process-step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  border-radius: 16px;
  background: var(--grad);
  box-shadow: 0 8px 26px rgba(56, 130, 246, 0.35);
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.process-step p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- 关于我们 ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text .section-tag {
  margin-bottom: 16px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 22px;
}

.about-text > p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
}

.value-item strong {
  font-size: 15px;
  flex-shrink: 0;
  letter-spacing: 2px;
  color: var(--accent);
}

.value-item span {
  font-size: 14px;
  color: var(--text-2);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-card {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.35s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.14);
}

.about-card-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------- 联系我们 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--card-hover);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 16px;
  font-weight: 600;
}

.contact-form {
  padding: 38px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(15, 22, 40, 0.96), rgba(15, 22, 40, 0.96)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(99, 102, 241, 0.5)) border-box;
  border: 1px solid transparent;
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-desc {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-tip {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- 渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card-featured {
    grid-column: 1 / -1;
  }

  .staff-feature {
    grid-template-columns: 1fr;
    padding: 34px 30px;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 5% 24px;
    background: rgba(6, 9, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > a:not(.nav-cta) {
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    margin: 18px 0 0;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .staff-grid,
  .products-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .product-cover {
    width: 120px;
  }

  .product-card-wide {
    flex-direction: column;
  }

  .product-card-wide .product-cover {
    width: 100%;
    height: 120px;
  }

  .product-card-wide .product-side {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 22px 26px;
  }

  .product-card-live .product-side {
    flex-direction: row;
    padding: 18px 20px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding-bottom: 60px;
  }

  .hero-actions {
    margin-bottom: 52px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .staff-feature-main {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex-direction: column;
  }

  .product-card-live .product-side {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .product-cover {
    width: 100%;
    height: 110px;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 无动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
