/*
Theme Name: Aobang Global
Theme URI: https://www.aubonmeter.com/
Author: Codex
Description: Custom WordPress theme for Qingdao Aubon's English export website.
Version: 0.1.0
Text Domain: aobang
*/

:root {
  --color-ink: #172033;
  --color-muted: #647084;
  --color-line: #d8dee8;
  --color-soft: #f4f7fb;
  --color-panel: #ffffff;
  --color-brand: #0f766e;
  --color-brand-dark: #0b4f4b;
  --color-accent: #d69a2d;
  --color-accent-soft: #fff6e3;
  --shadow-soft: 0 18px 45px rgba(23, 32, 51, 0.09);
  --max-page: 1440px;
  --page-gutter: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  border-top: 4px solid #342aa0;
  border-bottom: 1px solid #e5e9f0;
  background: #fff;
}

.top-strip {
  border-bottom: 1px solid #e7ebf1;
  color: #111827;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
}

.top-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  gap: 28px;
}

.top-strip-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.top-strip-group-left {
  justify-content: flex-start;
}

.top-strip-group-right {
  justify-content: flex-end;
}

.top-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-strip-link {
  color: #eef6fb;
}

.top-strip-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-strip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #342aa0;
  box-shadow: none;
}

.external-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.external-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: opacity 160ms ease, transform 160ms ease;
}

.external-link:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.external-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.external-youtube {
  color: #ff0000;
}

.external-linkedin {
  color: #0a66c2;
}

.external-facebook {
  color: #1877f2;
}

.external-x {
  color: #111827;
}

.external-instagram {
  color: #e4405f;
}

.header-inner,
.section-inner {
  width: min(var(--max-page), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 54px;
  place-items: center;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(135deg, #4f7fa1, #326183);
  box-shadow: none;
  font-size: 24px;
}

.brand small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #243044;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 44px;
  padding: 0 4px;
  color: #243044;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #342aa0;
}

.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: #342aa0;
  content: "";
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta,
.btn-primary {
  color: #fff;
  background: #342aa0;
}

.header-cta {
  min-width: 128px;
  border-radius: 0;
  box-shadow: none;
}

.header-cta:hover,
.btn-primary:hover {
  background: #20186f;
}

.btn-secondary {
  color: var(--color-brand-dark);
  background: #fff;
  border-color: var(--color-line);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-ink);
  background: #fff;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 620px;
  align-items: center;
  gap: 56px;
  padding: 48px 0 70px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 520px;
  background: #fff;
}

.hero-equipment-art {
  width: min(100%, 720px);
  filter: drop-shadow(0 24px 34px rgba(23, 32, 51, 0.16));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #342aa0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #2f3747;
  font-size: 18px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 0 0 0 22px;
  border: 0;
  border-left: 3px solid #342aa0;
  border-radius: 0;
  background: transparent;
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  color: #4b5565;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

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

.section-kicker {
  margin: 0 0 10px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

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

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

.card {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.03);
}

.product-card {
  overflow: hidden;
}

.product-media {
  display: grid;
  min-height: 190px;
  place-items: center;
  background: linear-gradient(135deg, #e7f0f6, #f7f2e8);
}

.product-body,
.feature-card,
.solution-card,
.news-card {
  padding: 24px;
}

.product-body h3,
.feature-card h3,
.solution-card h3,
.news-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.product-body p,
.feature-card p,
.solution-card p,
.news-card p {
  margin: 0;
  color: var(--color-muted);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--color-brand-dark);
  background: #dff4ef;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.factory-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.82), rgba(23, 32, 51, 0.72)),
    url("assets/factory-lines.svg") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.factory-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(12, 31, 45, 0.55);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--color-muted);
}

.check-list li::before {
  content: "✓";
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-brand);
  font-size: 13px;
  font-weight: 900;
}

.cta-band {
  color: #fff;
  background: var(--color-brand-dark);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.cta-band p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #c8d9d7;
}

.site-footer {
  color: #c8d1dc;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 58px 0;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-inner ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  color: #9ca8b7;
  font-size: 14px;
}

@media (max-width: 920px) {
  .top-strip-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 34px;
    gap: 12px;
  }

  .top-strip-group-left {
    min-width: 0;
  }

  .top-strip-group-left .top-strip-item {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
  }

  .top-strip-group-right {
    justify-content: flex-end;
  }

  .external-links {
    gap: 7px;
  }

  .external-link {
    width: 24px;
    height: 24px;
  }

  .external-link svg {
    width: 18px;
    height: 18px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    gap: 12px 18px;
    padding: 12px 0 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 46px;
    font-size: 20px;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-width: 62px;
    min-height: 34px;
    padding: 0 2px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: block;
    height: 1px;
  }

  .hero .section-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 54px;
  }

  .hero-visual {
    order: 2;
    min-height: 260px;
  }

  .hero-copy {
    order: 1;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 8vw, 46px);
  }

  .hero p {
    max-width: 100%;
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-equipment-art {
    width: min(100%, 560px);
  }

  .hero-stats,
  .grid-3,
  .grid-4,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 30px;
  }

  .header-inner,
  .section-inner {
    width: min(var(--max-page), calc(100% - var(--page-gutter)));
  }

  .header-cta {
    min-width: 112px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .top-strip-group {
    gap: 8px 12px;
  }

  .external-label {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 24px;
  }

  .top-strip {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .brand-mark {
    width: 46px;
    height: 40px;
    font-size: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand span:last-child {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand small {
    max-width: 165px;
    font-size: 11px;
  }

  .main-nav {
    margin-right: calc(var(--page-gutter) / -2);
    padding-bottom: 6px;
  }

  .hero .section-inner {
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-visual {
    min-height: 188px;
    overflow: hidden;
  }

  .hero-equipment-art {
    width: 112%;
    max-width: none;
  }

  .stat {
    padding-left: 10px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat span {
    font-size: 11px;
    line-height: 1.25;
  }

  .product-body,
  .feature-card,
  .solution-card,
  .news-card {
    padding: 18px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-lede {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand small {
    max-width: 130px;
  }

  .header-cta {
    min-width: 96px;
    font-size: 13px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
}
