/* 玄凤科技官网 — 科技风主题 */
:root {
  --bg-deep: #05080f;
  --bg-panel: #0c1220;
  --bg-elevated: #111a2e;
  --border: rgba(120, 200, 255, 0.12);
  --text: #e8eef8;
  --text-muted: #8a9bb8;
  --accent: #3dd6ff;
  --accent-dim: rgba(61, 214, 255, 0.15);
  --accent-2: #a78bfa;
  --glow: rgba(61, 214, 255, 0.35);
  --radius: 14px;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active:not(.nav-cta) {
  color: var(--accent);
}

.site-nav a.nav-cta.is-active {
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(61, 214, 255, 0.2);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: var(--accent) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    background: rgba(5, 8, 15, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--bg-elevated);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 12vw, 120px) 0 clamp(64px, 10vw, 100px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 214, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
}

.hero-inner {
  position: relative;
}

.hero--home {
  padding-bottom: clamp(48px, 8vw, 80px);
}

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(44vw, 520px);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(61, 214, 255, 0.08);
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 内页顶栏 */
.page-hero {
  padding: clamp(40px, 8vw, 72px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.5), transparent);
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 900px;
}

.page-lead {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr min(38vw, 420px);
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .page-hero-split {
    grid-template-columns: 1fr;
  }
}

.page-hero-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-panel);
}

.page-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 首页模块入口 */
.section-teasers {
  border-top: 1px solid var(--border);
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.teaser-card {
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.teaser-card:hover {
  border-color: rgba(61, 214, 255, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.teaser-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.teaser-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.teaser-card p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.teaser-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.section-pipeline-preview {
  background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.45));
}

.diagram-wrap {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.diagram-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 关于页分栏 */
.about-split {
  display: grid;
  grid-template-columns: 1fr min(40vw, 400px);
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-grid--stack {
  grid-template-columns: 1fr;
}

.side-figure {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.side-figure-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.side-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .side-figure {
    position: static;
  }
}

/* 产品卡片缩略图 */
.product-thumb {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.product-thumb--go {
  max-width: 220px;
  object-fit: cover;
}

.product-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

/* 联系页 */
.contact-page {
  display: grid;
  gap: 28px;
  max-width: 640px;
  margin-inline: auto;
}

.contact-brand {
  text-align: center;
}

.contact-logo-wide {
  max-width: min(100%, 360px);
  height: auto;
}

.contact-card--wide {
  max-width: 100%;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero-title {
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title-line {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  color: var(--text);
}

.hero-title-accent {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 600;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1a9fc4, var(--accent));
  color: #021018;
  box-shadow: 0 0 28px var(--glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-panel);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-panel), transparent);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 6px;
  letter-spacing: 0.06em;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(61, 214, 255, 0.35), transparent 50%, rgba(167, 139, 250, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-products {
  background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.6));
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: block;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: rgba(61, 214, 255, 0.45);
  transform: translateY(-3px);
  text-decoration: none;
}

.product-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.product-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-2);
  font-weight: 500;
  padding-top: 4px;
}

.service-item h2,
.service-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.section-partners {
  border-top: 1px solid var(--border);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

.partner-slot {
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(12, 18, 32, 0.5);
  min-height: 160px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.partner-slot--filled {
  border-style: solid;
  border-color: rgba(61, 214, 255, 0.25);
  background: var(--bg-panel);
  align-items: stretch;
  text-align: left;
}

.partner-slot--filled:hover {
  border-color: var(--accent);
}

.partner-logo {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
}

.partner-name {
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 1rem;
}

.partner-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.partner-placeholder {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.partner-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.partner-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.partner-note code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 6px;
}

.section-contact {
  background: linear-gradient(180deg, transparent, rgba(61, 214, 255, 0.04));
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 480px;
}

.contact-card {
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.contact-dl {
  margin: 0;
}

.contact-dl > div {
  margin-bottom: 18px;
}

.contact-dl > div:last-child {
  margin-bottom: 0;
}

.contact-dl dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-dl dd {
  margin: 0;
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-inner .footer-links {
  margin-top: 0;
}

.footer-icp {
  margin: 0;
  font-size: 0.8rem;
}

.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}
