/* ==========================================================
   淮南崎沐网络科技有限公司 - 官网样式
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1626;
  --card: #131c30;
  --card-hover: #182340;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #9aa5bb;
  --primary: #2f7bff;
  --primary-2: #00d4ff;
  --grad: linear-gradient(120deg, #2f7bff, #00d4ff);
  --grad-text: linear-gradient(120deg, #4d94ff, #00d4ff);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 22px; font-size: 14px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 212, 255, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary-2); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- 导航栏 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 123, 255, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
}
.logo-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--primary-2);
  letter-spacing: 3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-tel {
  margin-left: 20px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(47, 123, 255, 0.35);
}
.nav-tel:hover { transform: translateY(-2px); }

.nav { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  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: 140px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47, 123, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1122, var(--bg));
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: #2f7bff; }
.orb-2 { width: 360px; height: 360px; bottom: -80px; right: -60px; background: #00d4ff; animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; top: 40%; right: 26%; background: #7a5cff; opacity: 0.35; animation-delay: -8s; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.06); }
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  font-size: 14px;
  color: var(--primary-2);
  background: rgba(0, 212, 255, 0.08);
  margin-bottom: 26px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 38px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 70px auto 0;
  padding: 26px 10px;
  border-top: 1px solid var(--line);
}

.stat { text-align: center; }

.stat-num {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-plus { font-size: 22px; font-weight: 700; color: var(--primary-2); }
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head.left { text-align: left; margin-left: 0; }

.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary-2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-desc { color: var(--text-muted); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  transition: all 0.35s ease;
}
.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

.about-icon { font-size: 44px; margin-bottom: 18px; }

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.about-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- 服务项目 ---------- */
.services { background: var(--bg-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(47, 123, 255, 0.12);
  color: var(--primary-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 123, 255, 0.4);
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 核心优势 ---------- */
.advantage { background: var(--bg); }

.advantage-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.advantage-list { margin-top: 34px; display: grid; gap: 26px; }

.advantage-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.35);
}

.advantage-list h4 { font-size: 17px; margin-bottom: 4px; }
.advantage-list p { color: var(--text-muted); font-size: 14.5px; }

/* 代码卡片 */
.code-card {
  background: #0d1526;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.code-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
}

.code-card pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c9d4ea;
}

.c-key { color: #7aa2ff; }
.c-prop { color: #9cdcfe; }
.c-str { color: #7ee8a2; }
.c-num { color: #ffb86c; }
.c-bool { color: #ff7ab6; }
.c-fn { color: #d2a8ff; }
.c-comment { color: #5c6b8a; }

/* ---------- 合作流程 ---------- */
.process { background: var(--bg-soft); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: all 0.35s ease;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-block;
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  opacity: 0.9;
}

.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 14.5px; }

.process-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), transparent);
}
.process-step:last-child::after { display: none; }

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info h3 { font-size: 20px; margin-bottom: 24px; }

.contact-list { display: grid; gap: 22px; }

.contact-list li { display: flex; gap: 16px; align-items: flex-start; }

.c-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 123, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.contact-list strong { font-size: 15.5px; display: block; margin-bottom: 2px; }
.contact-list p { color: var(--text-muted); font-size: 14.5px; }
.contact-list a { color: var(--primary-2); transition: color 0.3s; }
.contact-list a:hover { color: #fff; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select option { background: var(--card); color: var(--text); }

.form-tip {
  margin-top: 14px;
  font-size: 14px;
  color: #7ee8a2;
  min-height: 20px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #070b15;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 260px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-links ul { display: grid; gap: 10px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-links a:hover { color: var(--primary-2); padding-left: 4px; }

.footer-contact p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.footer-bottom p {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-bottom a:hover { color: var(--primary-2); }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .section { padding: 90px 0; }

  .services-grid,
  .about-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }

  .advantage-inner { grid-template-columns: 1fr; gap: 48px; }
  .code-card { max-width: 560px; margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82%);
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 90px 30px 30px;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  }
  .nav.open { right: 0; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-link { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }

  .nav-tel { margin: 24px 0 0; justify-content: center; }

  .hero { padding: 120px 0 70px; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .about-grid,
  .services-grid,
  .process-grid,
  .contact-grid,
  .form-row { grid-template-columns: 1fr; }

  .contact-grid { gap: 26px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 72px 0; }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
}
