/* 嘛哩哈哈 · 企业官网 */
:root {
  --ink: #0b1a24;
  --ink-soft: #1a3344;
  --mist: #e7eef3;
  --paper: #f4f7f9;
  --white: #ffffff;
  --muted: #5a6d7a;
  --line: rgba(11, 26, 36, 0.12);
  --accent: #e05a2b;
  --accent-deep: #b8431a;
  --river: #1f6f8b;
  --river-soft: #3d8fa8;
  --shadow: 0 18px 50px rgba(11, 26, 36, 0.12);
  --radius: 4px;
  --nav-h: 72px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 249, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.3s;
}

.site-header.is-scrolled .brand-mark,
.site-header.nav-light .brand-mark {
  color: var(--ink);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.3s;
}

.site-header.is-scrolled .brand-sub,
.site-header.nav-light .brand-sub {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s;
}

.site-header.is-scrolled .nav a,
.site-header.nav-light .nav a {
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--accent) !important;
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem !important;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--accent-deep) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
}

.site-header.is-scrolled .nav-toggle,
.site-header.nav-light .nav-toggle {
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 143, 168, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(224, 90, 43, 0.22), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0b1a24 42%, #123447 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  right: -8%;
  top: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 40px rgba(255, 255, 255, 0.02),
    0 0 80px rgba(31, 111, 139, 0.25);
  animation: orbitPulse 8s var(--ease) infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 14ch;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 28ch;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.25s forwards;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 36ch;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--ink-soft);
}

/* —— Sections —— */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* About strip */
.about {
  background: var(--white);
}

.about-intro {
  max-width: 720px;
}

.about-intro p {
  color: var(--ink-soft);
  margin-bottom: 1.1em;
  text-align: justify;
  font-size: 1.05rem;
}

/* Directions */
.directions {
  background: var(--paper);
  padding-top: 0;
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.direction-list li {
  background: var(--white);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  transition: background 0.25s;
}

.direction-list li:hover {
  background: #f8fbfc;
}

.direction-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.direction-list span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Products — interaction containers, not decorative cards */
.products {
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: background 0.3s;
}

.product.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s;
}

.product:hover {
  background: rgba(255, 255, 255, 0.55);
}

.product-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.product h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product p {
  color: var(--muted);
  max-width: 72ch;
}

/* Scope */
.scope {
  background: var(--white);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  counter-reset: scope;
}

.scope-list li {
  counter-increment: scope;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.scope-list li::before {
  content: counter(scope, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--river);
}

/* Advantages */
.advantages {
  background: var(--ink);
  color: var(--white);
}

.advantages .eyebrow {
  color: var(--river-soft);
}

.advantages .section-head p {
  color: rgba(255, 255, 255, 0.62);
}

.adv-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.adv-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.adv-item h3 span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
}

.adv-item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 8px 0 14px;
}

.contact-copy > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-rows {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: grid;
  gap: 4px;
}

.contact-row dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-row dd {
  font-weight: 600;
  font-size: 1rem;
}

.contact-row a:hover {
  color: var(--accent);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(61, 143, 168, 0.2), transparent 55%),
    var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  min-height: 280px;
}

.contact-aside h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-aside .btn {
  align-self: flex-start;
}

/* Footer */
.site-footer {
  background: #071018;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 28px;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--white);
}

.icp-placeholder {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

/* Reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Animations */
@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(64px, 64px, 0);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 1100px) {
  .direction-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    color: var(--ink) !important;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 12px 0 0 !important;
    text-align: center;
    justify-content: center;
  }

  .adv-list,
  .contact-panel,
  .scope-list,
  .direction-list {
    grid-template-columns: 1fr;
  }

  .directions {
    padding-top: 72px;
  }

  .product {
    grid-template-columns: 48px 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .contact-panel {
    padding: 24px;
  }

  .hero {
    align-items: center;
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .hero-visual::before,
  .hero-visual::after {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .reveal,
  .product {
    opacity: 1;
    transform: none;
  }
}
