/* ========== 变量 ========== */
:root {
  --bg-deep: #0a0e0d;
  --bg-card: #111816;
  --bg-elevated: #151c1a;
  --border: rgba(122, 168, 140, 0.18);
  --text: #e8f0eb;
  --text-muted: #8fa89a;
  --accent: #6ee7a8;
  --accent-dim: #3d9a6c;
  --accent-glow: rgba(110, 231, 168, 0.35);
  --amber: #d4a853;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --container: 1120px;
}

/* ========== 动效关键帧 ========== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-y {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes gradient-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes scan-move {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  8% {
    opacity: 0.45;
  }
  92% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(520%);
    opacity: 0;
  }
}

@keyframes glow-breathe {
  0%, 100% {
    box-shadow: 0 0 28px var(--accent-glow), 0 0 0 1px var(--border);
  }
  50% {
    box-shadow: 0 0 44px rgba(110, 231, 168, 0.45), 0 0 0 1px rgba(110, 231, 168, 0.25);
  }
}

@keyframes btn-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* ========== 重置与基础 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* 噪点叠层 */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== 头部 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 13, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.logo:hover span {
  text-shadow: 0 0 12px var(--accent-glow);
  transition: text-shadow 0.3s ease;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-dim) 0%, #2d7a52 40%, #3d9a6c 80%, #2d7a52 100%);
  background-size: 200% 100%;
  color: #041208;
  border-color: rgba(110, 231, 168, 0.4);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: btn-shine 6s ease infinite;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: clamp(48px, 12vw, 100px) 0 clamp(64px, 10vw, 96px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 154, 108, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(212, 168, 83, 0.08), transparent 50%),
    linear-gradient(180deg, #0d1210 0%, var(--bg-deep) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 168, 140, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 140, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 70%);
  animation: grid-pan 48s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(32px, 6vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  }
}

.hero-copy > * {
  animation: fade-up 0.75s ease backwards;
}

.hero-copy .hero-tag {
  animation-delay: 0.06s;
}

.hero-copy h1 {
  animation-delay: 0.12s;
}

.hero-copy .hero-lead {
  animation-delay: 0.2s;
}

.hero-copy .hero-actions {
  animation-delay: 0.28s;
}

.hero-copy .hero-stats {
  animation-delay: 0.36s;
}

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
  animation: fade-up 0.85s ease 0.15s backwards, float-y 5.5s ease-in-out 1s infinite;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: glow-breathe 4s ease-in-out infinite;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(110, 231, 168, 0.06),
    rgba(110, 231, 168, 0.12),
    rgba(110, 231, 168, 0.06),
    transparent
  );
  pointer-events: none;
  animation: scan-move 5.5s ease-in-out infinite;
}

.hero-tag {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-tag .mono {
  color: var(--amber);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gradient-text {
  background: linear-gradient(105deg, var(--accent), #9aeec0 40%, var(--amber), var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 10s ease infinite;
}

.hero-lead {
  max-width: 36em;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  margin: 0;
}

.hero-stats dt {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== 区块通用 ========== */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
  margin-bottom: 40px;
  max-width: 520px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-head {
  animation: fade-up 0.7s ease backwards;
}

.services .section-head {
  animation-delay: 0.05s;
}

.why .section-head {
  animation-delay: 0.05s;
}

.process .section-head {
  animation-delay: 0.05s;
}

/* ========== 服务卡片 ========== */
.services {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: fade-up 0.65s ease backwards;
}

.card:nth-child(1) {
  animation-delay: 0.08s;
}

.card:nth-child(2) {
  animation-delay: 0.14s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}

.card:nth-child(4) {
  animation-delay: 0.26s;
}

.card:hover {
  border-color: rgba(110, 231, 168, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-ico {
  opacity: 0.95;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card:hover .card-ico {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.card-num {
  font-size: 0.72rem;
  color: var(--accent-dim);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== 优势列表 ========== */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.feature-list li {
  padding: 20px 22px;
  border-left: 3px solid var(--accent-dim);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--accent);
  animation: fade-up 0.6s ease backwards;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-list li:nth-child(1) {
  animation-delay: 0.06s;
}

.feature-list li:nth-child(2) {
  animation-delay: 0.12s;
}

.feature-list li:nth-child(3) {
  animation-delay: 0.18s;
}

.feature-list li:nth-child(4) {
  animation-delay: 0.24s;
}

.feature-list li:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.feature-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ========== 流程 ========== */
.process {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0c100e 100%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 720px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.6s ease backwards;
}

.steps li:nth-child(1) {
  animation-delay: 0.05s;
}

.steps li:nth-child(2) {
  animation-delay: 0.1s;
}

.steps li:nth-child(3) {
  animation-delay: 0.15s;
}

.steps li:nth-child(4) {
  animation-delay: 0.2s;
}

.steps li:last-child {
  border-bottom: none;
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.steps li:hover .step-num {
  border-color: rgba(110, 231, 168, 0.45);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.05);
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ========== 联系 ========== */
.contact {
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-copy > p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-channels li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-channels .mono {
  display: inline-block;
  min-width: 4.5em;
  color: var(--amber);
  margin-right: 8px;
}

.contact-form {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-dim);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== 页脚 ========== */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #080b0a;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(143, 168, 154, 0.55);
}

/* ========== 响应式 ========== */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-cta {
    display: none;
  }
}

/* ========== 减少动效（系统偏好） ========== */
@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;
  }
}
