/* 山东耕创 — 静态官网样式 */
:root {
  --bg-deep: #050a12;
  --bg-card: rgba(10, 18, 32, 0.82);
  --bg-elevated: rgba(14, 26, 44, 0.9);
  --border-subtle: rgba(100, 180, 255, 0.12);
  --text: #e8eef7;
  --text-muted: #8a9bb0;
  --accent: #3dd4c0;
  --accent-dim: rgba(61, 212, 192, 0.15);
  --gold: #d4b87a;
  --gold-dim: rgba(212, 184, 122, 0.12);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2138 40%, #0a1f2e 100%);
  --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --radius: 14px;
  --shadow-glow: 0 0 80px rgba(61, 212, 192, 0.08);
  --header-h: 72px;
  --icp-bar-h: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.88;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 背景网格与光晕 */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(61, 212, 192, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 212, 192, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-orb {
  position: fixed;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(61, 212, 192, 0.4), transparent 70%);
}

.bg-orb--2 {
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(100, 140, 220, 0.35), transparent 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* 顶栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(5, 10, 18, 0.92);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #2a9d8f);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #041018;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-desktop {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 14, 24, 0.97);
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-desktop.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #050a12;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      105deg,
      rgba(6, 12, 22, 0.58) 0%,
      rgba(5, 10, 18, 0.18) 42%,
      rgba(4, 14, 24, 0.36) 100%
    ),
    linear-gradient(180deg, transparent 0%, rgba(5, 10, 18, 0.28) 100%),
    url("../assets/images/bg-hero.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(61, 212, 192, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.55), 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(232, 238, 247, 0.95);
  max-width: 36ch;
  margin: 0 0 36px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #2a9d8f);
  color: #041018;
  box-shadow: 0 8px 32px rgba(61, 212, 192, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(61, 212, 192, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: rgba(61, 212, 192, 0.35);
  background: var(--accent-dim);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  max-width: 640px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.stat {
  padding-top: 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 通用区块 */
section {
  padding: 96px 24px;
  position: relative;
}

main section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* 分区摄影背景：深色叠加以保证正文可读 */
section.wrap:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section.wrap:not(.hero) > * {
  position: relative;
  z-index: 1;
}

#about::before {
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.38) 0%,
      rgba(6, 14, 26, 0.42) 50%,
      rgba(5, 10, 18, 0.48) 100%
    ),
    radial-gradient(
      ellipse 100% 80% at 50% 0%,
      transparent 0%,
      rgba(5, 10, 18, 0.25) 100%
    ),
    url("../assets/images/bg-lobby-corporate.jpg");
  background-position: center 45%;
}

#certs::before {
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.46) 0%,
      rgba(8, 18, 32, 0.42) 100%
    ),
    radial-gradient(
      ellipse 85% 70% at 50% 50%,
      transparent 0%,
      rgba(5, 10, 18, 0.35) 100%
    ),
    url("../assets/images/bg-certs-handshake.jpg");
  background-position: center 40%;
}

#smart-build::before {
  background-image: linear-gradient(
      155deg,
      rgba(5, 10, 18, 0.36) 0%,
      rgba(4, 12, 22, 0.46) 100%
    ),
    url("../assets/images/bg-smart-building.jpg");
  background-position: center 55%;
}

#power::before {
  background-image: linear-gradient(
      160deg,
      rgba(4, 10, 20, 0.32) 0%,
      rgba(5, 12, 22, 0.46) 55%,
      rgba(3, 8, 16, 0.42) 100%
    ),
    linear-gradient(90deg, rgba(61, 212, 192, 0.1) 0%, transparent 60%),
    url("../assets/images/bg-electrical-engineer.jpg");
  background-position: center 32%;
}

#software::before {
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.4) 0%,
      rgba(6, 16, 28, 0.38) 100%
    ),
    url("../assets/images/bg-server-room.jpg");
  background-position: center 42%;
}

#ops::before {
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.4) 0%,
      rgba(5, 12, 22, 0.46) 100%
    ),
    url("../assets/images/bg-modern-office.jpg");
  background-position: center 45%;
}

#cases::before {
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.36) 0%,
      rgba(4, 14, 24, 0.42) 100%
    ),
    url("../assets/images/bg-power-grid.jpg");
  background-position: center 48%;
}

/* 智慧用电子区块：配电实操场景（与 #power 主背景区分层次） */
#power .product-highlights::before {
  content: "";
  grid-column: 1 / -1;
  height: min(220px, 28vw);
  margin: -8px 0 12px;
  border-radius: var(--radius);
  background-image: linear-gradient(
      165deg,
      rgba(5, 10, 18, 0.35) 0%,
      rgba(5, 12, 22, 0.5) 100%
    ),
    url("../assets/images/bg-electrician.jpg");
  background-size: cover;
  background-position: center 22%;
  border: 1px solid var(--border-subtle);
}

#contact.contact-section::before {
  background-image: linear-gradient(
      175deg,
      rgba(5, 10, 18, 0.42) 0%,
      rgba(6, 18, 30, 0.4) 100%
    ),
    url("../assets/images/bg-corporate.jpg");
  background-position: center 55%;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.section-desc {
  color: rgba(232, 238, 247, 0.88);
  margin: 0;
  font-size: 1.05rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
}

.about-card p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.values {
  display: grid;
  gap: 16px;
}

.value-row {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.value-row strong {
  color: var(--gold);
  min-width: 5em;
  font-size: 0.9rem;
}

.value-row span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 资质条 */
.certs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.cert-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 184, 122, 0.25);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
}

/* 业务卡片网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(61, 212, 192, 0.28);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-card li {
  margin-bottom: 6px;
}

/* 平台大卡片 */
.platform-grid {
  display: grid;
  gap: 24px;
}

.platform-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  align-items: start;
}

@media (max-width: 640px) {
  .platform-card {
    grid-template-columns: 1fr;
  }
}

.platform-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(61, 212, 192, 0.35);
  line-height: 1;
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.platform-card .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.platform-card .value-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-card .value-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.platform-card .value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* 智慧用电亮点 */
.product-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.product-box {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-subtle);
}

.product-box h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--gold);
}

.product-box ul {
  margin: 0;
  padding-left: 1em;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 案例 */
.cases-columns {
  columns: 2;
  column-gap: 24px;
}

@media (max-width: 720px) {
  .cases-columns {
    columns: 1;
  }
}

.case-item {
  break-inside: avoid;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.case-item::before {
  content: "▸ ";
  color: var(--accent);
}

/* 知识产权 */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.ip-block {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.ip-block h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--accent);
}

.ip-block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 联系 */
.contact-section {
  padding-bottom: 120px;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, rgba(18, 40, 52, 0.9), rgba(8, 16, 28, 0.95));
  border: 1px solid rgba(61, 212, 192, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.contact-card h2 {
  font-family: var(--font-display);
  margin: 0 0 24px;
  font-size: 1.75rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  margin-top: 28px;
}

.contact-details div {
  text-align: left;
}

.contact-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-details dd {
  margin: 0;
  font-size: 1rem;
}

/* 页脚 */
.site-footer {
  padding: 32px 24px;
  padding-bottom: calc(32px + var(--icp-bar-h) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 固定备案底栏 */
.icp-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: var(--icp-bar-h);
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.icp-bar a {
  color: var(--text-muted);
}

.icp-bar a:hover {
  color: var(--accent);
  opacity: 1;
}

.icp-bar__sep {
  opacity: 0.45;
  user-select: none;
}

.icp-bar__company {
  color: var(--text);
  font-weight: 500;
}

/* 动画 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
