/* =========================================================
   嗨乐创信息技术官网 —— 科技蓝 · 深色质感主题
   ========================================================= */

:root {
  --bg: #050a16;
  --bg-soft: #08111f;
  --bg-alt: #070d1a;
  --panel: rgba(255, 255, 255, .045);
  --panel-strong: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(43, 127, 255, .35);
  --text: #e8eefb;
  --text-soft: #a7b4cc;
  --text-dim: #7b89a3;
  --blue: #2b7fff;
  --blue-deep: #1a5fd8;
  --cyan: #35e0ff;
  --violet: #8b5cf6;
  --green: #22d3a7;
  --grad: linear-gradient(120deg, #35e0ff 0%, #2b7fff 45%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, rgba(53, 224, 255, .18), rgba(139, 92, 246, .18));
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glow: 0 0 34px rgba(43, 127, 255, .38);
  --radius: 18px;
  --header-h: 74px;
  --max: 1220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 背景光效 ---------------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-1 { width: 620px; height: 620px; top: -220px; left: -140px; background: rgba(43, 127, 255, .5); animation: float1 18s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; top: 32%; right: -180px; background: rgba(139, 92, 246, .38); animation: float2 22s ease-in-out infinite; }
.blob-3 { width: 460px; height: 460px; bottom: -160px; left: 38%; background: rgba(53, 224, 255, .22); animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.08); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, 60px) scale(1.12); } }

/* ---------------- 滚动进度条 ---------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000;
  background: var(--grad); box-shadow: var(--glow); transition: width .1s linear;
}

/* ---------------- 顶部导航 ---------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(5, 10, 22, .55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.header.scrolled { background: rgba(5, 10, 22, .92); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 800; letter-spacing: .5px;
  box-shadow: var(--glow); font-size: 16px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 17px; letter-spacing: .5px; }
.logo-text em { font-style: normal; font-size: 11px; color: var(--text-dim); letter-spacing: 2px; }

.nav { display: flex; gap: 6px; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: 15px; color: var(--text-soft);
  border-radius: 10px; transition: color .25s, background .25s;
}
.nav-link:hover { color: #fff; background: var(--panel); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; cursor: pointer; padding: 10px 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; transition: .25s; }
.nav-toggle.on span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(43, 127, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(43, 127, 255, .5); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-outline:hover { border-color: var(--blue); background: rgba(43, 127, 255, .12); }
.btn-ghost { color: var(--text-soft); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--line-strong); }

/* ---------------- 首屏 ---------------- */
.hero { position: relative; z-index: 1; padding: calc(var(--header-h) + 70px) 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text-soft);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.hero-title { margin: 22px 0 18px; font-size: clamp(31px, 3.6vw, 50px); line-height: 1.25; font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 16.5px; color: var(--text-soft); max-width: 620px; }
.hero-btns { display: flex; gap: 14px; margin: 30px 0 40px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 620px; }
.hero-stats li { padding: 14px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 12.5px; color: var(--text-dim); }

/* 代码卡片 */
.hero-inner > * { min-width: 0; }
.hero-visual { position: relative; min-width: 0; }
.code-card {
  position: relative; min-width: 0; border-radius: 20px; overflow: hidden; background: rgba(7, 14, 28, .92);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.c-r { background: #ff5f57; } .c-y { background: #febc2e; } .c-g { background: #28c840; }
.code-bar span { margin-left: 10px; font-size: 12.5px; color: var(--text-dim); font-family: Consolas, monospace; }
.code-body { padding: 22px 20px 26px; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 2; overflow-x: auto; max-width: 100%; }
.code-body .k { color: #c792ea; } .code-body .s { color: #7ee787; } .code-body .f { color: #79c0ff; }
.code-body .b { color: #ffab70; } .code-body .c { color: #6b7a90; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.float-chip {
  padding: 8px 14px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
  background: rgba(12, 22, 40, .9); border: 1px solid var(--line-strong); color: var(--text-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); white-space: nowrap;
}

/* ---------------- 通用区块 ---------------- */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.sec-tag { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--cyan); margin-bottom: 12px; font-weight: 700; }
.sec-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.35; margin-bottom: 14px; text-wrap: balance; }
.sec-desc { color: var(--text-soft); font-size: 15.5px; text-wrap: pretty; }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-soft); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); background: var(--panel-strong); }
.card:hover::before { opacity: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 服务卡片 */
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 16px; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { color: var(--text-soft); font-size: 14.5px; }
.svc-list { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.svc-list li { position: relative; padding-left: 20px; font-size: 13.8px; color: var(--text-dim); line-height: 2; }
.svc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }


/* 技术栈 */
.tech-marquee { overflow: hidden; margin-bottom: 34px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 14px; width: max-content; animation: scroll-x2 30s linear infinite; }
.tech-marquee:hover .tech-track { animation-play-state: paused; }
@keyframes scroll-x2 { to { transform: translateX(-50%); } }
.tech-item { padding: 11px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-soft); white-space: nowrap; }

.mini-card { text-align: center; padding: 24px 18px; }
.mini-card strong { display: block; font-size: 20px; font-weight: 800; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-card span { font-size: 13.2px; color: var(--text-dim); }

/* ---------------- 关于我们 ---------------- */
.about-copy { max-width: 860px; }
.contact-grid > * { min-width: 0; }
.about-copy h3 { font-size: 24px; margin-bottom: 14px; }
.about-copy p { color: var(--text-soft); font-size: 15px; margin-bottom: 14px; }
.honor-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.honor { padding: 7px 14px; border-radius: 10px; font-size: 13px; color: var(--text-soft); background: rgba(43, 127, 255, .08); border: 1px solid var(--line-strong); }

/* 合作流程 */
.flow { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line); }
.flow h4 { font-size: 15.5px; margin-bottom: 14px; }
.flow-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.flow-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.flow-list b { font-size: 15px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow-list span { font-size: 13.2px; color: var(--text); line-height: 1.6; }
.flow-list em { display: block; font-style: normal; font-size: 12px; color: var(--text-dim); }

/* ---------------- 联系与表单 ---------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.info-card h3, .form-card h3 { font-size: 20px; margin-bottom: 18px; }
.info-card ul li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-card ul li:last-child { border-bottom: 0; }
.info-card ul li > span { font-size: 18px; }
.info-card ul li div { display: flex; flex-direction: column; font-size: 14px; color: var(--text-soft); }
.info-card ul li strong { font-size: 12.5px; color: var(--text-dim); font-weight: 500; margin-bottom: 2px; }
.info-card a:hover { color: var(--cyan); }

.promise-card { margin-top: 20px; padding: 24px; }
.promise-card h4 { font-size: 16.5px; margin-bottom: 12px; }
.promise-card li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-soft); line-height: 2.1; }
.promise-card li::before { content: "★"; position: absolute; left: 0; color: var(--cyan); }

.form-card { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 7px; }
.field label i { color: #ff6b6b; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-family: inherit;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text);
  transition: border-color .25s, box-shadow .25s, background .25s; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: #5d6b83; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 127, 255, .16); background: rgba(255, 255, 255, .06);
}
.field select option { background: #0b1424; }
.field textarea { resize: vertical; min-height: 110px; }
.field .counter { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--text-dim); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }

.form-tip { margin-top: 12px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.form-msg { margin-top: 14px; font-size: 14px; text-align: center; display: none; padding: 12px; border-radius: 12px; }
.form-msg.show { display: block; animation: fadeUp .3s ease; }
.form-msg.ok { color: var(--green); background: rgba(34, 211, 167, .1); border: 1px solid rgba(34, 211, 167, .3); }
.form-msg.err { color: #ff8f8f; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); }
#submitBtn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- 页脚 ---------------- */
.footer { position: relative; z-index: 1; background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-brand p { margin: 16px 0 16px; font-size: 14px; color: var(--text-dim); max-width: 380px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badges span { padding: 5px 12px; border-radius: 8px; font-size: 12px; color: var(--text-soft); background: var(--panel); border: 1px solid var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 15px; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 13.8px; color: var(--text-dim); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; text-align: center; font-size: 12.8px; color: var(--text-dim); }
.footer-bottom p { line-height: 1.9; }

/* 友情链接 */
.friend-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: 13.2px; }
.friend-label { color: var(--text-dim); }
.friend-links a { color: var(--text-soft); padding: 3px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); transition: .25s; }
.friend-links a:hover { color: var(--cyan); border-color: var(--line-strong); }

/* 备案信息 */
.beian-line { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.beian-line a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.2px; color: var(--text-soft); transition: color .25s; }
.beian-line a:hover { color: var(--cyan); }
.beian-police { padding: 3px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.beian-icon { width: auto; height: 17px; flex: none; }
.beian-tip { margin-top: 6px; font-size: 12px; color: #6b7891; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 800; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 20px; border: none; cursor: pointer;
  box-shadow: var(--glow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------------- 滚动动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(6, 12, 24, .98); border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 4px;
  }
  .nav.open .nav-link { padding: 12px 6px; font-size: 15.5px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 66px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .float-chip { font-size: 11.5px; padding: 7px 11px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .nav-actions .btn-ghost { display: none; }
  .to-top { right: 14px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
