/* 无锡数梦空间科技 — 官网样式 */
:root {
  --bg-deep: #0a1628;
  --bg-card: rgba(16, 36, 62, 0.72);
  --bg-elevated: #122338;
  --bg-surface: rgba(11, 24, 44, 0.55);
  --text: #e8eef6;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-warm: #f59e0b;
  --border: rgba(148, 163, 184, 0.14);
  --radius: 14px;
  --radius-lg: 18px;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --max: 1160px;
  --prose: 42rem;
  --section-y: clamp(3.25rem, 6vw, 5rem);
  --gap-sm: clamp(0.875rem, 2vw, 1.25rem);
  --gap-md: clamp(1.125rem, 2.5vw, 1.5rem);
  --gap-lg: clamp(1.25rem, 3vw, 1.75rem);
  --pad-x: clamp(1.25rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  background-image: radial-gradient(
      ellipse 120% 85% at 50% -25%,
      rgba(56, 189, 248, 0.16),
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 100% 0%,
      rgba(34, 211, 238, 0.07),
      transparent 52%
    );
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - var(--pad-x) * 2, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 22, 40, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

/* 源文件 logo.png 为 890×445（约 2:1 横版）。双约束缩放，保持比例、不裁切文字 */
.logo-img {
  display: block;
  max-height: clamp(38px, 7.5vw, 72px);
  max-width: min(17rem, 62vw);
  width: auto;
  height: auto;
  aspect-ratio: 890 / 445;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.logo:hover {
  text-decoration: none;
}

.logo:hover .logo-img {
  opacity: 0.92;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(0.75rem, 2vw, 0.95rem) 0;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-desktop a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
/* 主按钮：深色底 + 亮字，保证顶栏「联系我们」等与背景的对比度 */
.btn-primary {
  background: linear-gradient(135deg, #0369a1, #0c4a6e);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0e7490);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  border-radius: 1px;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }
  .nav-desktop {
    position: fixed;
    inset: 58px max(12px, var(--pad-x)) auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 0;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
  .nav-desktop.is-open {
    display: flex;
  }
  .nav-desktop a {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    white-space: normal;
  }
  .nav-desktop a:hover {
    background: rgba(56, 189, 248, 0.08);
  }
  .nav-desktop .btn {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 5.25rem) 0 clamp(3.5rem, 9vw, 5.5rem);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 3vw, 1.35rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw + 0.5rem, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.hero .lead {
  margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
  max-width: min(var(--prose), 100%);
  color: var(--text-muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.12rem);
  line-height: 1.75;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent-2);
  text-decoration: none;
}

/* Sections */
section {
  padding: var(--section-y) 0;
}

.section-surface {
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.2vw + 0.85rem, 1.9rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: clamp(2rem, 4vw, 2.75rem) 0 1.1rem;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.section-desc {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-muted);
  max-width: min(var(--prose), 100%);
  line-height: 1.78;
  font-size: 0.98rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-md);
}

.product-highlight-grid {
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 1.65rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.14rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.case-card > p:first-of-type {
  flex-grow: 1;
}

.card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

/* Mission strip */
.mission {
  padding: clamp(2.25rem, 5vw, 3rem) 0;
  border-block: 1px solid var(--border);
  background: rgba(18, 35, 56, 0.48);
}

.mission blockquote {
  margin: 0 auto;
  max-width: min(36rem, 100%);
  text-align: center;
  font-size: clamp(1.08rem, 1.5vw + 0.85rem, 1.42rem);
  font-weight: 600;
  color: var(--text);
  font-style: normal;
  line-height: 1.55;
}
.mission cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.06em;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}

@media (max-width: 960px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.55);
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.pillar strong {
  display: block;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}

/* Case cards */
.case-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-warm);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.case-meta {
  margin-top: auto;
  padding-top: 1rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--accent-2);
}

/* Cooperation */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}

@media (max-width: 900px) {
  .coop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .coop-grid {
    grid-template-columns: 1fr;
  }
}

.coop-card .num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.92;
  margin-bottom: 0.35rem;
  line-height: 1;
}

/* About */
.about-prose {
  margin-top: 0.25rem;
}

.about-prose p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.about-prose strong {
  color: var(--text);
  font-weight: 700;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--gap-md);
  align-items: start;
  margin-top: 0.15rem;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-block-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form-hint {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-form-hint strong {
  color: var(--accent-2);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-contact-form {
  position: relative;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-field .req {
  color: var(--accent-warm);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(10, 22, 40, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-field select {
  cursor: pointer;
  appearance: auto;
}

.form-status {
  margin: 0 0 1rem;
  min-height: 1.35em;
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status--ok {
  color: var(--accent-2);
}

.form-status--error {
  color: #f87171;
}

.form-status--pending {
  color: var(--text-muted);
}

.contact-form-card .form-submit {
  width: 100%;
  max-width: 16rem;
  margin-top: 0.25rem;
}

.contact-card {
  margin: 0;
}

dl.info-list {
  margin: 0;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.1rem);
}
dl.info-list > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  font-size: 0.94rem;
  align-items: first baseline;
}
dl.info-list dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}
dl.info-list dd {
  margin: 0;
  word-break: break-word;
}
dl.info-list dd a {
  word-break: break-all;
}

@media (max-width: 480px) {
  dl.info-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  dl.info-list dt {
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.02em;
  }
}

/* Footer */
.site-footer {
  padding: clamp(2.5rem, 5vw, 3rem) 0 clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--border);
  background: rgba(6, 12, 22, 0.92);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
  max-width: 36rem;
}

.site-footer strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.legal {
  padding-top: clamp(1.25rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.75;
  text-align: center;
}

.legal .icp {
  margin: 0 0 0.65rem;
}

.legal .icp a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal .icp a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.legal p:last-child {
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg-deep);
  z-index: 200;
}
