/* ============================================
   智物云享官网 — 1920 基准宽
   网格取整：4×2 / 1×3 / 1×2 / 单图拉满
   ============================================ */

:root {
  --ink: #0e1628;
  --ink-soft: #3a465c;
  --steel: #16325c;
  --signal: #1270c4;
  --signal-deep: #0a4f8f;
  --cyan: #0aa3b8;
  --paper: #f4f7fb;
  --mist: #e6eef6;
  --line: #d0dae8;
  --white: #ffffff;
  --thumb: #121a28;
  /* 1920 设计：左右各 120，内容区 1680 */
  --page: 1920px;
  --max: 1680px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol, figure {
  list-style: none;
  margin: 0;
}

/* ---------- 版心（1920） ---------- */
.shell {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

@media (min-width: 1920px) {
  .shell {
    width: var(--max);
  }
}

/* ---------- 通用网格 ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--gutter);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 14px;
}

.section {
  padding: 100px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-head h2,
.contact-panel h2 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--ink-soft);
  text-indent: 2em;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 46em;
}

.metric-num {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--signal);
  line-height: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--mist);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  transition: color 0.3s;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.site-header.is-solid .brand {
  color: var(--steel);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s;
  white-space: nowrap;
}

.site-header.is-solid .site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-header.is-solid .site-nav a:hover,
.site-header.is-solid .site-nav a.is-active {
  color: var(--signal);
}

.nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding-inline: 20px !important;
}

.site-header.is-solid .nav-cta {
  border-color: var(--signal);
  color: var(--signal) !important;
}

.site-header.is-solid .nav-cta:hover {
  background: var(--signal);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  transition: background 0.3s;
}

.site-header.is-solid .nav-toggle span {
  background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--signal);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--signal-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 920px;
  height: 100vh;
  height: 100dvh;
  max-height: 1080px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 100px;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.05);
  animation: hero-ken 18s ease-out forwards;
}

@keyframes hero-ken {
  to { transform: scale(1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 36, 0.4) 0%, rgba(8, 18, 36, 0.12) 38%, rgba(8, 18, 36, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 40, 80, 0.4) 0%, transparent 50%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-brand {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-lead {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 3px;
  height: 10px;
  background: var(--white);
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- About ---------- */
.about {
  background: var(--white);
}

.about-photos img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--mist);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--mist);
}

.metric-row dd {
  margin-top: 8px;
  font-size: 20px;
  color: var(--ink-soft);
}

/* ---------- Scenes ---------- */
.scenes {
  background: var(--paper);
}

.scene-item {
  position: relative;
  overflow: hidden;
  height: 360px;
  color: var(--white);
}

.scene-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.scene-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 18, 36, 0.9) 100%);
  z-index: 1;
}

.scene-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.scene-cap h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scene-cap p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.scene-item:hover img {
  transform: scale(1.05);
}

/* ---------- Products 4×2 ---------- */
.products {
  background: var(--white);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-thumb {
  background: var(--thumb);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 28px;
  margin-bottom: 18px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Platform 1×3 ---------- */
.platform {
  background: var(--ink);
  color: var(--white);
}

.platform .eyebrow {
  color: var(--cyan);
}

.platform .section-desc {
  color: rgba(255, 255, 255, 0.68);
}

.platform-card {
  display: flex;
  flex-direction: column;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.platform-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top left;
  background: #0a101c;
}

.platform-card figcaption {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-card strong {
  font-size: 17px;
  font-weight: 700;
}

.platform-card span {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

/* ---------- Cases 4×2 ---------- */
.cases {
  background: var(--paper);
}

.case-grid figure {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: var(--mist);
}

.case-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.case-grid figure:hover img {
  transform: scale(1.04);
}

.case-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(transparent, rgba(8, 18, 36, 0.78));
}

/* ---------- Honors 4×2 ---------- */
.honors {
  background: var(--white);
}

.honor-grid img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: var(--paper);
  padding: 16px;
  border: 1px solid var(--mist);
}

/* ---------- Partners：单图拉满 ---------- */
.partners {
  background: var(--paper);
}

.partner-full {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--mist);
  padding: 0;
  overflow: hidden;
}

.partner-full img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, #0d3a6e 0%, #1270c4 48%, #0aa3b8 100%);
  color: var(--white);
  padding: 100px 0;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.contact .section-desc {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  font-size: 17px;
  align-items: baseline;
}

.contact-details span {
  opacity: 0.65;
  font-size: 14px;
}

.contact-details a[href^="tel"] {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contact .btn-solid {
  margin-top: 12px;
  justify-self: start;
  background: var(--white);
  color: var(--signal-deep);
  width: fit-content;
}

.contact .btn-solid:hover {
  background: var(--mist);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a101c;
  color: rgba(255, 255, 255, 0.55);
  padding: 28px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer-brand img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ---------- 1440 / 笔记本 ---------- */
@media (max-width: 1440px) {
  :root {
    --max: 1200px;
    --gutter: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-head h2,
  .contact-panel h2 {
    font-size: 34px;
  }

  .hero-brand {
    font-size: 56px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .scene-item {
    height: 300px;
  }

  .case-grid figure {
    height: 220px;
  }

  .platform-card img {
    height: 220px;
  }

  .honor-grid img {
    height: 240px;
  }
}

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  :root {
    --max: 100%;
    --gutter: 16px;
    --header-h: 68px;
  }

  .shell {
    width: min(100% - 40px, 960px);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 720px;
    max-height: none;
  }

  .hero-brand {
    font-size: 48px;
    letter-spacing: 0.06em;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .platform-card img {
    height: 240px;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--mist);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-header.is-solid .site-nav a,
  .site-header .site-nav a {
    color: var(--ink) !important;
    padding: 14px 4px;
    border-bottom: 1px solid var(--mist);
  }

  .nav-cta {
    margin: 12px 0 0 !important;
    text-align: center;
    border-color: var(--signal) !important;
    color: var(--signal) !important;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2,
  .contact-panel h2 {
    font-size: 28px;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .scene-item {
    height: 240px;
  }

  .case-grid figure {
    height: 200px;
  }

  .honor-grid img {
    height: 220px;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero {
    align-items: center;
    min-height: 100vh;
    padding-bottom: 72px;
  }

  .hero-brand {
    font-size: 40px;
    letter-spacing: 0.04em;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

}

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