/* HUEI PU TECHNOLOGY — shared stylesheet (zh + en share this one file) */

:root {
  --navy-900: #0f2a44;
  --navy-800: #16395c;
  --navy-700: #1e4a73;
  --navy-600: #2a5c8a;
  --blue-500: #2f7dd9;
  --blue-600: #1f63b3;
  --gray-50: #f7f9fb;
  --gray-100: #eef1f4;
  --gray-300: #d7dee4;
  --gray-600: #55606b;
  --gray-900: #1a2330;
  --white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;

  --container-w: 1160px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 68, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-600);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

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

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.btn-outline-navy:hover {
  background: var(--navy-700);
  color: var(--white);
}

/* Site header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-900);
}

.nav-brand .brand-zh {
  font-size: 1.05rem;
}

.nav-brand .brand-en {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-800);
  border-bottom-color: var(--blue-500);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 4px 6px;
  margin-left: 8px;
}

.nav-lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--gray-600);
}

.nav-lang a.is-active {
  background: var(--navy-900);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  color: var(--white);
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 110px 24px 130px;
}

.hero-inner p {
  color: rgba(255, 255, 255, 0.86);
}

.hero .eyebrow {
  color: #9cc6f5;
}

.hero h1 {
  color: var(--white);
  max-width: 620px;
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

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

/* Section rhythm */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Intro / feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card h3 {
  color: var(--navy-800);
}

.feature-card p {
  margin-bottom: 0;
}

/* Product category cards (badge + spec sheet, grid layout) */

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

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.product-badge {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-600));
}

.product-card h3 {
  color: var(--navy-900);
  font-size: 1.3rem;
  margin: 0;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.spec-strip-item {
  background: var(--gray-50);
  padding: 14px 16px;
}

.spec-strip-item dt {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.spec-strip-item dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-900);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--navy-800);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.spec-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b3661a;
  background: #fdf0e0;
  border-radius: 6px;
  padding: 4px 10px;
}

/* CTA banner */

.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  min-width: 84px;
  font-weight: 700;
  color: var(--navy-800);
}

.contact-value a {
  color: var(--blue-600);
  font-weight: 600;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 0.88rem;
  line-height: 1.9;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */

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

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

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

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

  .hero-inner {
    padding: 72px 20px 90px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}
