/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0d13;
  --bg-deep: #07090e;
  --bg-soft: #0d1118;
  --card: #12161f;
  --text-main: #e8ecf3;
  --text-sub: #9aa3b2;
  --text-light: #6b7484;
  --border: #232a38;
  --accent: #4d83ff;
  --accent-soft: #8fb0ff;
  --dark: #07090e;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Ukj", "UKIJ Tuz Tom", "UKIJ Tuz", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: normal;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

ol, ul {
  list-style: none;
}

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

/* 滚动入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 13, 19, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;
  position: relative;
  padding-left: 16px;
}

.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), #8fb0ff);
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-size: 15px;
  color: var(--text-sub);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
}

/* 首页横幅（暗夜科技风） */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  background-color: var(--bg-deep);
  color: #ffffff;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000000 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  left: 50%;
  top: -240px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(77, 131, 255, 0.32) 0%, rgba(77, 131, 255, 0) 65%);
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 131, 255, 0.6), transparent);
  animation: scan 5s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent-soft);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(77, 131, 255, 0.9);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero-title {
  font-size: 46px;
  font-weight: normal;
  letter-spacing: 4px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-sub);
  letter-spacing: 2px;
  margin-bottom: 46px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 12px 34px;
  font-size: 15px;
  letter-spacing: 2px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-link:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6e95ff);
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5d8fff, #82a4ff);
  box-shadow: 0 6px 22px rgba(77, 131, 255, 0.4);
}

.hero-code {
  font-family: var(--mono);
  font-size: 13px;
  color: #4c5565;
  margin-top: 44px;
  letter-spacing: 1px;
}

/* 通用版块 */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section-index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 3px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--text-main);
  display: inline-block;
}

.section-body p {
  color: var(--text-sub);
  max-width: 820px;
  margin-bottom: 18px;
}

/* 经营范围 */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.scope-block {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 36px 34px 30px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.scope-block:hover {
  border-color: rgba(77, 131, 255, 0.5);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.scope-head {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 2px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scope-head::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--accent), #8fb0ff);
}

.scope-list li {
  position: relative;
  padding: 14px 0 14px 38px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: color 0.2s, padding-left 0.2s;
}

.scope-list li:last-child {
  border-bottom: none;
}

.scope-list li:hover {
  color: var(--text-main);
  padding-left: 44px;
}

.scope-list li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.scope-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 联系我们 */
.contact-list li {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  max-width: 720px;
}

.contact-label {
  width: 110px;
  flex-shrink: 0;
  color: var(--text-light);
  letter-spacing: 2px;
}

.contact-value {
  color: var(--text-sub);
}

.phone-card {
  position: relative;
  margin-top: 48px;
  max-width: 720px;
  background-color: var(--bg-deep);
  border: 1px solid rgba(77, 131, 255, 0.25);
  color: #ffffff;
  padding: 44px 40px;
  overflow: hidden;
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.phone-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(77, 131, 255, 0.32) 0%, rgba(77, 131, 255, 0) 70%);
  pointer-events: none;
}

.phone-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 1;
}

.phone-corner-tl {
  left: 14px;
  top: 14px;
  border-left: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
}

.phone-corner-br {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.phone-caption {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.phone-number {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--mono);
  font-size: 40px;
  letter-spacing: 4px;
  color: #ffffff;
  line-height: 1.4;
  transition: color 0.2s, text-shadow 0.2s;
}

.phone-number:hover {
  color: #c6d6ff;
  text-shadow: 0 0 24px rgba(77, 131, 255, 0.6);
}

.phone-tip {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #5f6878;
  margin-top: 10px;
  letter-spacing: 1px;
}

.copy-btn {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--accent);
  background-color: rgba(77, 131, 255, 0.18);
}

.copy-btn.copied {
  border-color: var(--accent);
  background-color: var(--accent);
}

/* 页脚 */
.site-footer {
  padding: 44px 0;
  text-align: center;
  background-color: var(--bg-deep);
}

.site-footer p {
  font-size: 14px;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.footer-sub {
  font-size: 12px !important;
  color: var(--text-light) !important;
  margin-top: 8px;
  letter-spacing: 0.5px !important;
}

/* 平板与手机适配 */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:hover {
    border-bottom-color: var(--border);
  }

  .hero {
    padding: 84px 0;
  }

  .hero-title {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-code {
    font-size: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 36px;
  }

  .scope-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scope-block {
    padding: 28px 24px 24px;
  }

  .contact-list li {
    flex-direction: column;
    gap: 4px;
  }

  .contact-label {
    width: auto;
  }

  .phone-card {
    padding: 34px 26px;
  }

  .phone-number {
    font-size: 27px;
    letter-spacing: 2px;
  }
}
