/* 郑州类优艾网络科技有限公司 — 浅色明亮主题 */
:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7f;
  --accent: #0d8bd9;
  --accent-2: #06b6d4;
  --accent-soft: rgba(13, 139, 217, 0.12);
  --line: #e1e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 14px 40px rgba(15, 23, 42, 0.12);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 锚点滚动时避开固定顶栏 */
section[id],
#service-dev,
#service-sales {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.nav-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.logo {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 280px);
}
.logo:hover { text-decoration: none; color: var(--accent); }

/* —— 主导航：桌面单行扁平链接；手机纵向抽屉 —— */
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.45rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d8bd9, #0891b2);
  box-shadow: 0 6px 18px rgba(13, 139, 217, 0.35);
  white-space: nowrap;
}
.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 桌面窄屏：单行横向滚动，避免换行叠字 */
@media (min-width: 769px) {
  .nav-shell {
    overflow: hidden;
  }
  .site-nav {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar {
    height: 4px;
  }
  .site-nav::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-shell {
    flex-basis: 100%;
    order: 3;
    overflow: visible;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-width: none;
    overflow: visible;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-header { position: relative; }

  .site-nav > a {
    display: block;
    text-align: left;
    padding: 0.9rem 1rem;
    border-radius: 0;
    white-space: normal;
    font-size: 1rem;
    text-decoration: none;
  }
  .site-nav > a.nav-link {
    color: var(--text);
  }
  .site-nav > a.nav-link:hover {
    background: #f8fafc;
    text-decoration: none;
    color: var(--accent);
  }
  .site-nav > a.nav-cta:hover {
    text-decoration: none;
    filter: brightness(1.05);
  }
  .site-nav > a ~ a {
    border-top: 1px solid var(--line);
  }
  .site-nav > a:first-child {
    border-radius: 12px 12px 0 0;
  }
  .site-nav > a:last-child:not(:only-child) {
    border-radius: 0 0 11px 11px;
  }
  .site-nav > a:only-child {
    border-radius: 12px;
  }

  .site-nav > a.nav-cta {
    margin: 0;
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(13, 139, 217, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 20%, rgba(6, 182, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0891c5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 139, 217, 0.35);
}
.btn-primary:hover { color: #fff; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
}

.section-sub {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.section-title + .product-grid {
  margin-top: 0.25rem;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1rem;
}

/* Cards (主营业务) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(13, 139, 217, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card-icon-2 {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 产品展示 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 40%, #e0fdfa 100%);
}

.product-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.product-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--text);
}

.product-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.footer-admin a {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-admin a:hover { color: var(--accent); }
