*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --steel: #2a5298;
  --gold: #c9963a;
  --gold-light: #e8b84b;
  --light-bg: #f2f4f8;
  --mid-bg: #e4e9f2;
  --text-dark: #1a1a2e;
  --text-mid: #3d4a6b;
  --text-light: #6b7a99;
  --white: #ffffff;
  --border: #d0d8e8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Palatino', 'Times New Roman', '宋体', serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  border-bottom: 2px solid var(--gold);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: bold;
}

.nav-logo {
  height: 38px;
  width: 38px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text .cn { display: block; font-size: 1.05rem; }
.nav-brand-text .en-subtitle { display: block; font-size: 0.7rem; color: var(--gold-light); letter-spacing: 0.08em; margin-top: 1px; }
.nav-brand-text .en-main { display: none; font-size: 1.05rem; color: var(--gold-light); letter-spacing: 0.08em; }
body.en .nav-brand-text .cn { display: none; }
body.en .nav-brand-text .en-subtitle { display: none; }
body.en .nav-brand-text .en-main { display: block; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none;
}
.nav-links a {
  color: #c8d4ec;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-right {
  display: flex; align-items: center; gap: 28px;
}

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}

.lang-btn {
  background: var(--gold);
  color: var(--navy);
  border: none; cursor: pointer;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.lang-btn:hover { background: var(--gold-light); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  margin-top: 64px;
  min-height: 520px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1e4080 100%);
  display: flex; align-items: center;
  padding: 80px 8%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(42,82,152,0.3) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: bold;
  margin-bottom: 20px;
  border-radius: 2px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}
.hero h1 .cn-name {
  display: block;
  font-size: 2.6rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.hero h1 .en-name {
  display: none;
  font-size: 2rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  font-weight: normal;
  margin-top: 8px;
}

.hero-tagline {
  color: #d0dff0;
  font-size: 1rem;
  margin-top: 18px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  line-height: 1.6;
}

.hero-stats {
  display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  color: var(--gold-light);
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat .label {
  display: block;
  color: #c8d8ee;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== SECTION STYLES ===== */
section { padding: 80px 8%; }
section:nth-child(even):not(.hero) { background: var(--light-bg); }

.section-tag {
  display: inline-block;
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  margin-bottom: 12px;
}

h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.section-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-mid);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.about-meta {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 28px;
}
.meta-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.93rem;
}
.meta-label {
  color: var(--navy);
  font-weight: bold;
  min-width: 90px;
  flex-shrink: 0;
}
.meta-val { color: var(--text-mid); }

.license-card {
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,31,61,0.12);
}
.license-card img {
  width: 100%; display: block;
}
.license-card-caption {
  background: var(--navy);
  color: #a8bcd8;
  text-align: center;
  font-size: 0.8rem;
  padding: 10px;
  letter-spacing: 0.08em;
}

/* ===== CORE BUSINESS ===== */
.business-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  position: relative;
  border-top: 4px solid var(--steel);
  transition: box-shadow 0.25s, transform 0.25s;
}
.biz-card:hover {
  box-shadow: 0 12px 40px rgba(15,31,61,0.12);
  transform: translateY(-3px);
}

.biz-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.biz-card:first-child .biz-icon {
  background: var(--navy);
  font-size: 1.9rem;
}
.biz-card:first-child .biz-icon span {
  filter: invert(65%) sepia(69%) saturate(530%) hue-rotate(342deg) brightness(95%);
}

.biz-card h3 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.biz-card p {
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ===== PARTNERSHIPS ===== */
.partner-intro {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 40px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px 24px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.partner-card:hover {
  box-shadow: 0 8px 28px rgba(15,31,61,0.10);
  transform: translateY(-2px);
}

.partner-years {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
  font-size: 1.6rem;
  padding: 10px 18px;
  border-radius: 4px;
  line-height: 1;
  margin-bottom: 16px;
}

.partner-card h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.partner-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.partner-card a {
  color: var(--steel);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.partner-card a:hover { color: var(--gold); border-color: var(--gold); }

/* ===== MANUFACTURING ===== */
.mfg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.mfg-text p {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 16px;
}

.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: 6px;
  padding: 32px 30px;
  margin-top: 24px;
}
.highlight-box h4 {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.highlight-box p {
  color: #c0ceea;
  font-size: 0.93rem;
  line-height: 1.65;
}

.client-list {
  margin-top: 32px;
}
.client-list h4 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.client-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  background: var(--mid-bg);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.87rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.capacity-cards {
  display: flex; flex-direction: column; gap: 20px;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 22px 24px;
}
.cap-card .big-num {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--navy);
  line-height: 1;
}
.cap-card .unit {
  font-size: 1rem;
  color: var(--text-light);
  margin-left: 4px;
}
.cap-card .cap-label {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: #8097be;
  padding: 48px 8% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand .fn-en { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex; gap: 8px; align-items: flex-start;
}
.footer-col li .dot { color: var(--gold); flex-shrink: 0; }
.footer-col a { color: #8097be; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #566a8c;
}

/* ===== DIVIDER ===== */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px 0 32px;
  border-radius: 2px;
}

/* ===== CLASS-BASED LANG (hero, nav, footer) ===== */
.hero h1 .cn-name { display: block; }
body.en .hero h1 .cn-name { display: none; }
body.en .hero h1 .en-name { display: block; }

body.en .footer-brand h3 { display: none; }

/* ===== LANG VISIBILITY ===== */
[data-lang="en"] { display: none; }
body.en [data-lang="zh"] { display: none; }
body.en [data-lang="en"] { display: revert; }

/* for inline elements */
span[data-lang], a[data-lang], strong[data-lang] { display: none; }
body.en span[data-lang="en"],
body.en a[data-lang="en"],
body.en strong[data-lang="en"] { display: inline; }
span[data-lang="zh"],
a[data-lang="zh"],
strong[data-lang="zh"] { display: inline; }
body.en span[data-lang="zh"],
body.en a[data-lang="zh"],
body.en strong[data-lang="zh"] { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .mfg-grid, .footer-grid { grid-template-columns: 1fr; }
  .business-cards, .partner-grid { grid-template-columns: 1fr; }
  .hero h1 .cn-name { font-size: 1.9rem; }

  nav { flex-wrap: wrap; height: auto; min-height: 64px; padding: 0 5%; }
  .nav-brand { padding: 14px 0; }
  .hamburger { display: block; }

  .nav-right { flex-wrap: wrap; justify-content: flex-end; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
  }
}
