/* ============================================================
   ZEROACT — 零能（重庆）科技有限公司 官网样式
   风格参考：极简、黑白灰、大字号、无圆角卡片、少装饰
   ============================================================ */

:root {
  --ink: #17181c;
  --ink-soft: #393c41;
  --ink-mute: #6b6e73;
  --paper: #ffffff;
  --paper-alt: #f4f4f4;
  --line: #e3e4e6;
  --dark: #0b0c0e;
  --dark-soft: #16181b;
  --white: #ffffff;
  --white-mute: #9b9ea3;
  --accent: #3e6ae1;
  --nav-h: 56px;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
          "Helvetica Neue", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------------- 导航 ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease;
}

.nav.scrolled {
  background: rgba(11, 12, 14, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: .32em;
  font-size: 15px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:active { transform: scale(.98); }

.btn-solid { background: var(--white); color: var(--ink); }
.btn-solid:hover { background: #e8e8ea; }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

.btn-small { padding: 7px 18px; font-size: 13px; }

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center 38% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 24px 64px;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-sub {
  color: rgba(255, 255, 255, .8);
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: .12em;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, .4);
  z-index: 2;
}

/* ---------------- 通用区块 ---------------- */

.section { padding: 120px 0; }

.section-alt { background: var(--paper-alt); }

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .section-lead { color: var(--white-mute); }

.section-kicker {
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-dark .section-kicker { color: var(--white-mute); }

h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ---------------- 服务 ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.card-num {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 56px;
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------------- 案例 ---------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-tile {
  position: relative;
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  transition: transform .3s ease;
}

.case-tile:hover { transform: translateY(-4px); }

.case-a {
  background:
    radial-gradient(120% 90% at 20% 10%, #2a3444 0%, #101319 55%, #0a0c0f 100%);
}

.case-b {
  background:
    radial-gradient(120% 90% at 80% 10%, #31404a 0%, #101619 55%, #0a0c0f 100%);
}

.case-body { color: var(--white); position: relative; z-index: 1; }

.case-tag {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--white-mute);
  display: block;
  margin-bottom: 14px;
}

.case-tile h3 {
  font-size: 30px;
  font-weight: 650;
  margin-bottom: 10px;
}

.case-tile p {
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
  max-width: 360px;
}

/* ---------------- 关于 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about-right p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.meta-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.meta-list > div {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.meta-list dt {
  width: 88px;
  flex: none;
  color: var(--ink-mute);
}

.meta-list dd { color: var(--ink); }

/* ---------------- 联系 ---------------- */

.contact-wrap { text-align: center; }

.contact-wrap .section-lead { margin-left: auto; margin-right: auto; }

.contact-items {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.contact-item {
  min-width: 260px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, background .2s;
}

.contact-item:hover {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .04);
}

.contact-label {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--white-mute);
}

.contact-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
}

/* ---------------- 页脚 ---------------- */

.footer {
  background: var(--dark);
  color: var(--white-mute);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 40px 0 48px;
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: .32em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col:nth-child(2) { align-items: flex-end; }
.footer-col:nth-child(3) { align-items: flex-end; }

.footer a { transition: color .2s; }
.footer a:hover { color: var(--white); }

/* ---------------- 文档页（隐私/条款/支持） ---------------- */

.doc {
  padding: calc(var(--nav-h) + 72px) 0 120px;
}

.doc-inner {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 650;
  margin-bottom: 10px;
}

.doc-updated {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 48px;
}

.doc h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 44px 0 14px;
}

.doc p, .doc li {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; }

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

.doc .meta-list { margin-top: 28px; }

.doc-foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------------- 入场动画 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .section { padding: 88px 0; }

  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .card-num { margin-bottom: 28px; }

  .grid-2 { grid-template-columns: 1fr; }
  .case-tile { min-height: 320px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) { align-items: flex-start; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 12, 14, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 16px;
  }

  body.menu-open .nav-links { max-height: 320px; }

  .menu-btn { display: flex; }

  body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav-cta .btn { display: none; }
}

@media (max-width: 480px) {
  .contact-item { min-width: 100%; }
  .hero h1 { font-size: 40px; }
}
