/* 淮安迅君网络科技有限公司 — 企业官网样式 */

:root {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --surface: #0f1c24;
  --surface-soft: #1a2d38;
  --text: #1e2930;
  --text-muted: #5c6b76;
  --text-on-dark: #e8eef2;
  --accent: #0d7a6f;
  --accent-light: #14a394;
  --accent-glow: rgba(13, 122, 111, 0.25);
  --border: rgba(15, 28, 36, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow: 0 24px 48px -12px rgba(15, 28, 36, 0.12);
  --shadow-lg: 0 32px 64px -16px rgba(15, 28, 36, 0.18);
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1200px, 100% - 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: #fff;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .site-nav a {
  color: var(--text);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark);
  text-decoration: none;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-light);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
  color: #fff;
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--accent-light);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 28, 36, 0.92) 0%,
    rgba(15, 28, 36, 0.75) 45%,
    rgba(13, 122, 111, 0.35) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem 6rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: rgba(232, 238, 242, 0.85);
  font-weight: 600;
}

.hero-lead {
  color: rgba(232, 238, 242, 0.78);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats dt {
  font-size: 0.75rem;
  color: rgba(232, 238, 242, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  color: var(--text);
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-card-list svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections */
.section {
  padding-block: 5.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--surface);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 55ch;
}

/* About */
.about {
  background: var(--bg-elevated);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 58ch;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

.about-facts {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.about-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--surface);
}

/* Bento services */
.services {
  background: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bento-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.bento-img {
  overflow: hidden;
  min-height: 200px;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.bento-card:hover .bento-img img {
  transform: scale(1.04);
}

.bento-img-sm {
  max-height: 220px;
}

.bento-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card:not(.bento-large):not(.bento-wide) {
  padding: 1.75rem;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 0.65rem;
}

.bento-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(13, 122, 111, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bento-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-list li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(13, 122, 111, 0.08);
  color: var(--accent);
  border-radius: 999px;
}

/* Advantages */
.advantages {
  background: var(--surface);
  color: var(--text-on-dark);
}

.advantages .section-eyebrow {
  color: var(--accent-light);
}

.advantages .section-head h2 {
  color: #fff;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.adv-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}

.adv-card:hover {
  border-color: rgba(20, 163, 148, 0.35);
  transform: translateY(-3px);
}

.adv-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(20, 163, 148, 0.35);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.adv-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.adv-card p {
  font-size: 0.9rem;
  color: rgba(232, 238, 242, 0.65);
  line-height: 1.6;
}

/* Process */
.process {
  background: var(--bg-elevated);
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-steps li {
  position: relative;
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-steps h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 0.5rem;
}

.process-steps p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #e8eeef 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy p {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-row svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--surface);
  margin-bottom: 0.25rem;
}

.contact-row p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  padding: 2rem;
  border-radius: var(--radius-xl);
  color: var(--text);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--surface);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  color: rgba(232, 238, 242, 0.7);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  width: 2.25rem;
  color: var(--accent-light);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-nav a {
  color: rgba(232, 238, 242, 0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
  color: rgba(232, 238, 242, 0.6);
}

.footer-legal a:hover {
  color: var(--accent-light);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 420px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .adv-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    color: var(--text);
    width: 100%;
    padding: 0.5rem 0;
  }

  .site-header:not(.is-scrolled) .site-nav a {
    color: var(--text);
  }

  .bento,
  .adv-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
  }

  .hero-scroll {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}
