/*
Theme Name: EAMOGO Brand Website
Theme URI: https://www.eamogo.com/
Author: EAMOGO
Description: A bilingual high-end technology brand website for EAMOGO lithium battery products.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: eamogo
*/

:root {
  --blue: #0758e8;
  --blue-dark: #003fb8;
  --ink: #0a0d14;
  --text: #3d4655;
  --muted: #6d7686;
  --line: #dce5f2;
  --panel: #f6f9fd;
  --soft: #edf5ff;
  --green: #22c55e;
  --shadow: 0 18px 50px rgba(20, 50, 90, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--blue);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 25px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
}

.lang {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.lang.active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f8fbff 0%, #fff 48%, #eef6ff 100%);
}

.hero.tall {
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 75% 45%, rgba(7, 88, 232, 0.13), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.1));
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/eamogo-hero.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 540px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.page-title {
  font-size: clamp(42px, 5vw, 68px);
}

.hero p {
  max-width: 510px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(7, 88, 232, 0.22);
}

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

.section {
  padding: 34px 0;
}

.section.tight {
  padding: 22px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

.lead {
  color: var(--text);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 22px rgba(24, 56, 93, 0.04);
  overflow: hidden;
}

.pad {
  padding: 22px;
}

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

.product-card {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.product-art {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.battery {
  position: relative;
  width: 176px;
  height: 58px;
  border-radius: 18px 24px 20px 14px;
  background: linear-gradient(145deg, #15181d, #06070a);
  box-shadow: inset 0 0 0 2px #2b3139, 0 18px 30px rgba(10, 16, 28, 0.18);
}

.battery.slim {
  width: 190px;
  height: 42px;
}

.battery.rack {
  width: 168px;
  height: 70px;
  border-radius: 6px;
}

.battery.wall {
  width: 86px;
  height: 118px;
  border-radius: 5px;
  background: linear-gradient(160deg, #f8fafc, #e9eef6);
  box-shadow: inset 0 0 0 1px #cdd7e5, 0 18px 30px rgba(10, 16, 28, 0.12);
}

.battery::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 21px;
  width: 34px;
  height: 10px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--green), var(--green) 5px, #0b3019 5px, #0b3019 8px);
}

.battery.wall::after {
  top: 16px;
  right: 28px;
  width: 30px;
}

.product-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #f7fbff);
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
}

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

.icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.feature h3,
.value h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p,
.value p,
.card p {
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0;
}

.scenario {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: #fff;
  background: linear-gradient(140deg, rgba(5, 10, 18, 0.75), rgba(7, 88, 232, 0.16)),
    url("assets/eamogo-hero.png") center / cover;
}

.scenario h3 {
  margin: 0;
}

.hero-panel {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #edf5ff, #fff);
  border: 1px solid var(--line);
  overflow: hidden;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  max-width: 650px;
}

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

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
}

.story-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: center;
}

.thumb {
  min-height: 110px;
  background: linear-gradient(135deg, #dcecff, #fff 45%, #111827);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.timeline .card {
  padding: 16px;
  border-top: 3px solid var(--blue);
}

.layout-products {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
}

.side {
  align-self: start;
  padding: 14px;
}

.side a {
  display: block;
  padding: 13px 14px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
}

.side a.active,
.side a:hover {
  color: var(--blue);
  background: var(--soft);
}

.news-feature {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
}

.news-feature .thumb {
  min-height: 240px;
}

.news-date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 28px;
}

.contact-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  min-height: 42px;
  padding: 11px 12px;
  font: inherit;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

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

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

.spec strong {
  display: block;
  font-size: 22px;
  margin-top: 7px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 28px;
}

.footer-grid h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

.copyright {
  color: var(--muted);
  font-size: 13px;
  margin-top: 26px;
}

[data-lang="zh"] [data-en],
[data-lang="en"] [data-zh] {
  display: none !important;
}

@media (max-width: 920px) {
  .wrap,
  .hero-content {
    width: min(100% - 32px, var(--max));
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 24px;
  }

  .hero {
    min-height: 560px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  }

  .hero-media {
    background-position: center bottom;
    opacity: 0.75;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-5,
  .product-strip,
  .feature-row,
  .stats,
  .timeline,
  .specs,
  .footer-grid,
  .layout-products,
  .news-feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 22px;
  }

  .nav-tools {
    gap: 6px;
  }

  h1 {
    font-size: 42px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}


/* EAMOGO fallback battery visual when packaged images are unavailable. */
.hero-media {
  background: radial-gradient(circle at 78% 42%, rgba(7, 88, 232, 0.18), transparent 26%), linear-gradient(90deg, #f8fbff 0%, #ffffff 46%, #eaf3ff 100%);
}
.hero-media::before {
  content: "";
  position: absolute;
  right: clamp(28px, 10vw, 150px);
  top: 50%;
  width: min(46vw, 590px);
  height: clamp(105px, 13vw, 170px);
  transform: translateY(-45%) skewX(-8deg);
  border-radius: 34px 44px 30px 38px;
  background: linear-gradient(145deg, #1d2229 0%, #090b0f 52%, #2a3038 100%);
  box-shadow: 0 38px 56px rgba(14, 30, 55, 0.22), inset 0 0 0 2px rgba(255,255,255,0.08), inset 0 20px 28px rgba(255,255,255,0.06);
}
.hero-media::after {
  content: "EAMOGO   ▮▮▮▮";
  position: absolute;
  right: clamp(58px, 13vw, 210px);
  top: 50%;
  transform: translateY(-20%);
  color: #f8fbff;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 95px 0 0 #18d34f;
}
.scenario {
  background: linear-gradient(140deg, rgba(5, 10, 18, 0.86), rgba(7, 88, 232, 0.34)), radial-gradient(circle at 76% 22%, rgba(255,255,255,0.42), transparent 24%), linear-gradient(135deg, #1b2737, #0a101a 54%, #0b55d8);
}
@media (max-width: 760px) {
  .hero-media::before { right: -90px; opacity: 0.28; width: 520px; }
  .hero-media::after { display: none; }
}

/* 2026-07 visual refinement */
.hero-media::before,
.hero-media::after {
  display: none !important;
}

.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center;
}

.feature-row {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto;
  gap: 16px;
  border: 0;
  background: transparent;
}

.feature {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 50, 90, 0.07);
}

.product-art {
  height: 150px;
  padding: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f9fc;
}

.product-art > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

.product-card {
  min-height: 305px;
}

.scenario {
  position: relative;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  background: #0d2448;
}

.scenario > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center;
  z-index: 0;
}

.scenario::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.02) 35%, rgba(5, 12, 24, 0.9) 100%);
}

.scenario > h3 {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  padding: 18px;
  margin: 0;
  color: #fff;
  line-height: 1.25;
}

.thumb {
  overflow: hidden;
  border-radius: 10px;
}

.thumb > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

.grid.cols-5 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media (max-width: 920px) {
  .feature-row {
    width: min(100% - 32px, var(--max));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    border-bottom: 1px solid var(--line) !important;
  }

  .hero {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .scenario {
    min-height: 220px;
  }
}

/* 2026-07 premium brand system v2 */
:root {
  --max: 1320px;
  --radius: 18px;
  --line: #e6ecf4;
  --text: #445064;
}

body {
  background: #fff;
  color: #080d17;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
}

.hero {
  min-height: clamp(460px, 34vw, 560px);
  border-bottom: 0;
  background: #f4f8fd;
}

.hero.tall {
  min-height: clamp(620px, 68vh, 760px);
}

.hero::before {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 30%, rgba(255,255,255,.68) 47%, rgba(255,255,255,.12) 72%, rgba(255,255,255,0) 100%);
}

.hero-media > img {
  transform: scale(1.01);
  object-position: center center;
}

.hero.tall .hero-media > img {
  object-position: 68% center;
}

.hero-content {
  width: min(var(--max), calc(100% - 64px));
  padding: 96px 0;
}

.hero.tall .hero-content {
  padding: 118px 0;
}

.hero-content > * {
  max-width: 530px;
}

.eyebrow {
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: .14em;
}

h1 {
  max-width: 600px;
  margin-bottom: 26px;
  font-size: clamp(54px, 5.1vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.page-title {
  font-size: clamp(50px, 4.3vw, 66px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 520px;
  margin-bottom: 34px;
  font-size: 17px;
  line-height: 1.72;
}

.btn {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn.primary {
  box-shadow: 0 12px 28px rgba(7, 88, 232, .22);
}

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

.section {
  padding: 82px 0;
}

.section.tight {
  padding: 52px 0;
}

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

.section h2 {
  font-size: clamp(30px, 2.6vw, 40px);
  letter-spacing: -.025em;
}

.grid {
  gap: 24px;
}

.card {
  border-color: #e7edf5;
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(21, 45, 80, .07);
}

.pad {
  padding: 28px;
}

.product-strip {
  gap: 22px;
}

.product-card {
  min-height: 370px;
  padding: 22px;
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(21, 45, 80, .12);
}

.product-art {
  height: 190px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc, #eef3f9);
}

.product-card h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.product-card .meta {
  line-height: 1.65;
}

.feature-row {
  margin: 0 auto;
  padding: 0;
  gap: 20px;
}

.feature {
  min-height: 170px;
  padding: 28px;
  align-items: flex-start;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(21, 45, 80, .065);
}

.feature .icon,
.value .icon,
.contact-item .icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
}

.scenario {
  min-height: 260px;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(9, 28, 59, .15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.scenario:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(9, 28, 59, .22);
}

.scenario > h3 {
  padding: 24px;
  font-size: 19px;
}

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

.news-feature .thumb {
  min-height: 360px;
}

.grid.cols-4 .thumb {
  height: 210px;
}

.story-card .thumb {
  min-height: 240px;
}

.stats {
  gap: 0;
  max-width: 660px;
}

.stat {
  padding: 0 28px;
}

.stat:first-child {
  padding-left: 0;
}

.layout-products {
  gap: 34px;
}

.side {
  border-radius: 16px;
}

.contact-grid {
  gap: 28px;
}

.hero-panel {
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(21, 45, 80, .09);
}

@media (max-width: 1100px) {
  .grid.cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero.tall {
    min-height: 650px;
  }
}

@media (max-width: 760px) {
  .wrap,
  .hero-content {
    width: min(100% - 36px, var(--max));
  }

  .hero,
  .hero.tall {
    min-height: 620px;
  }

  .hero-content,
  .hero.tall .hero-content {
    padding: 76px 0 190px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 52%, rgba(255,255,255,.22) 76%, rgba(255,255,255,.02) 100%);
  }

  .hero-media > img,
  .hero.tall .hero-media > img {
    object-position: 70% center;
  }

  h1 {
    font-size: clamp(46px, 13vw, 62px);
  }

  .page-title {
    font-size: 46px;
  }

  .section {
    padding: 58px 0;
  }

  .section.tight {
    padding: 38px 0;
  }

  .grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 340px;
  }

  .scenario {
    min-height: 290px;
  }

  .feature {
    min-height: auto;
  }

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

  .stat {
    padding: 0 18px;
  }
}
