/*
Theme Name: Aismalibar Chinese Demo
Theme URI: https://aismalibar.storefixkit.com/
Author: Tianwen
Description: Chinese one-page WordPress demo for Aismalibar based on the supplied landing package.
Version: 1.0.0
Text Domain: aismalibar-cn-demo
*/

@font-face {
  font-family: "Neuzeit";
  src: url("assets/fonts/NeuzeitSLTStd-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neuzeit";
  src: url("assets/fonts/NeuzeitSLTStd-BookHeavy.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #003594;
  --blue-deep: #00276e;
  --ink: #161615;
  --muted: #60636b;
  --line: #d7dbe5;
  --paper: #ffffff;
  --soft: #f5f6f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Neuzeit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--blue) 96%, transparent);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.nav-wrap {
  max-width: 1220px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  width: 174px;
  color: #fff;
  flex: 0 0 auto;
}

.brand svg {
  width: 100%;
  height: auto;
}

.brand-wordmark {
  font-size: 28px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a {
  opacity: .88;
  transition: opacity .15s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.header-cta,
.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 12px 24px 10px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.header-cta {
  color: var(--blue);
  background: #fff;
}

.btn.primary {
  color: #fff;
  background: var(--blue);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
}

.text-link {
  min-height: 0;
  padding: 0 20px 0 0;
  color: var(--blue);
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  width: 7px;
  height: 11px;
  background: linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%),
              linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%);
  transform: translateY(1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  padding-top: 74px;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: var(--blue-deep);
  color: #fff;
}

.hero-copy {
  min-height: 646px;
  padding: clamp(70px, 10vw, 132px) clamp(28px, 7vw, 104px) 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: .76;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 19px;
}

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

.hero-media {
  min-height: 646px;
  position: relative;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 39, 110, .32), rgba(0, 0, 0, 0));
}

.section {
  padding: 96px 28px;
}

.section.soft {
  background: var(--soft);
}

.section.blue {
  color: #fff;
  background: var(--blue);
}

.inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.center {
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
}

.lead {
  max-width: 920px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.blue .lead {
  color: rgba(255, 255, 255, .8);
}

.product-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
}

.product-card img {
  aspect-ratio: 1.15 / 1;
  width: 100%;
  object-fit: cover;
}

.product-copy {
  padding: 24px 22px 28px;
}

.product-copy h3 {
  margin: 0;
  min-height: 68px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 400;
}

.product-copy h3 span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-copy p {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
}

.split-copy p {
  color: var(--muted);
  font-size: 18px;
}

.stat-row {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 35px;
  line-height: 1;
  font-weight: 700;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.market-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .32);
  border-left: 1px solid rgba(255, 255, 255, .32);
}

.market {
  min-height: 116px;
  padding: 24px 22px;
  border-right: 1px solid rgba(255, 255, 255, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.market small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  text-transform: uppercase;
}

.download-grid,
.news-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.download {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 124px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.download img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.download span {
  color: var(--muted);
  font-size: 14px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
}

.news-copy {
  padding: 22px;
}

.category {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
}

.news-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 400;
}

.contact-band {
  padding: 72px 28px;
  color: #fff;
  background: var(--blue-deep);
}

.contact-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.contact-layout h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .82);
}

.site-footer {
  padding: 68px 28px 34px;
  color: #fff;
  background: var(--blue);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 42px;
}

.footer-brand {
  width: 158px;
  color: #fff;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid a,
.footer-grid li,
.footer-note {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.footer-note {
  width: min(1180px, 100%);
  margin: 48px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav.is-open {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 26px 24px;
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .main-nav.is-open a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .hero,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy,
  .hero-media {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .product-grid,
  .market-grid,
  .download-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-wrap {
    min-height: 66px;
    padding: 0 18px;
  }

  .brand {
    width: 146px;
  }

  .main-nav.is-open {
    top: 66px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero-copy {
    padding: 52px 22px 44px;
  }

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

  .hero-sub {
    font-size: 17px;
  }

  .section {
    padding: 72px 22px;
  }

  .product-grid,
  .market-grid,
  .download-grid,
  .news-grid,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .product-copy h3 {
    min-height: 0;
  }

  .contact-band {
    padding: 58px 22px;
  }
}
