/* 成都金渠科技官网 — 静态单页样式 */

:root {
  --bg-deep: #050810;
  --bg-card: rgba(12, 18, 32, 0.72);
  --border: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-dim: #9a7b2c;
  --cyan: #22d3ee;
  --brand-blue: #3b82f6;
  --brand-violet: #8b5cf6;
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Orbitron", "Noto Sans SC", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 背景动效 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 70%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 140vmax;
  height: 140vmax;
  top: -40vmax;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(212, 175, 55, 0.12),
    transparent 25%,
    rgba(34, 211, 238, 0.08),
    transparent 50%,
    rgba(212, 175, 55, 0.1),
    transparent 75%,
    rgba(34, 211, 238, 0.06)
  );
  animation: spin-glow 120s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes spin-glow {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 16, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark:hover {
  text-decoration: none;
}

.logo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.15rem;
}

.logo-titles__cn {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.logo-titles__en {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

@media (max-width: 400px) {
  .logo-titles__en {
    display: none;
  }
}

.nav-desktop {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-desktop a:hover {
  color: var(--gold);
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), transparent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.95);
}
.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
}

@media (max-width: 768px) {
  .nav-mobile.open {
    display: flex;
  }
}

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-brand {
  margin: 0 auto 1.25rem;
  padding: 0;
  border: none;
  animation: fade-up 0.75s var(--ease-out) both;
}

.hero-brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(99, 102, 241, 0.15);
}

.hero-brand__img {
  display: block;
  width: auto;
  max-width: min(144px, 38vw);
  max-height: 160px;
  height: auto;
  object-fit: contain;
}

/* 首屏关键词：三枚小标签，避免 PC 端单行大胶囊 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 auto 1.4rem;
  padding: 0;
  list-style: none;
  max-width: 22rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

@media (min-width: 768px) {
  .hero-tags {
    max-width: none;
    gap: 0.5rem;
    margin-bottom: 1.55rem;
  }
}

.hero-tags li {
  margin: 0;
  flex: 0 0 auto;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(232, 236, 244, 0.92);
  background: linear-gradient(165deg, rgba(22, 30, 52, 0.92), rgba(8, 12, 22, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

@media (min-width: 768px) {
  .hero-tags li {
    padding: 0.4rem 1rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }
}

.hero-tags li:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-tags li:nth-child(1) {
  border-top: 2px solid rgba(34, 211, 238, 0.55);
}

.hero-tags li:nth-child(2) {
  border-top: 2px solid rgba(99, 102, 241, 0.55);
}

.hero-tags li:nth-child(3) {
  border-top: 2px solid rgba(212, 175, 55, 0.55);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(
    120deg,
    #fff 0%,
    var(--brand-blue) 28%,
    var(--brand-violet) 52%,
    var(--gold) 78%,
    var(--cyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 0.8s 0.1s var(--ease-out) both;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  animation: fade-up 0.8s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fade-up 0.8s 0.35s var(--ease-out) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section 通用 */
section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-heading {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1.25rem;
  color: #fff;
}

.section-lead {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.section-lead--flush {
  margin-bottom: 1rem;
}

/* 企业简介 + 宣传图 */
.about-section {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.about-facts {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

.value-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.value-pills li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
}

.about-section__figure {
  margin: 0;
}

/* 内容示意大图 / 灯箱触发 */
.content-shot {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f172a;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.content-shot:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.content-shot:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.content-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.content-shot--wide {
  max-width: 100%;
}

.content-shot-cap {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.content-shot-cap--center {
  text-align: center;
}

/* 应急系统三图 */
.content-gallery {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .content-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.content-gallery__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* 三列示意图为统一 16:9 外框，避免单张素材比例不同导致与邻列不齐 */
.content-gallery .content-shot {
  position: relative;
  aspect-ratio: 16 / 9;
}

.content-gallery .content-shot img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.content-gallery__cell .content-shot-cap {
  flex: 1;
}

.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);
}

/* 卡片网格 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0.85;
}
.card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-4px);
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #fff;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 经营范围 */
.scope-box {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem 1.75rem;
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.scope-box::-webkit-scrollbar {
  width: 8px;
}
.scope-box::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-qual {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-qual__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--gold);
}

.contact-qual__lead {
  margin-bottom: 1.25rem;
  max-width: 48rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--gold);
}

.contact-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.contact-card--brand {
  text-align: center;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
}

.brand-lockup__img {
  max-width: 100%;
  width: min(280px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.brand-lockup__note {
  margin-top: 1rem;
  text-align: left;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo {
  border-radius: 10px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.site-footer strong {
  color: var(--text);
}

/* 灯箱 */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox__fig {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1120px, 96vw);
  max-height: min(88vh, 900px);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
