/* ============================================
   Portable Charger - Global Portal
   Premium B2B Industry Portal Design System
   ============================================ */

:root {
  --primary: #0A2540;
  --primary-light: #1a3a5f;
  --primary-dark: #061a30;
  --accent: #FFB800;
  --accent-dark: #e6a500;
  --accent-light: #ffd24d;
  --energy: #00D4FF;
  --energy-dark: #00a8cc;
  --text-primary: #0A2540;
  --text-secondary: #4a5d7e;
  --text-muted: #8895a7;
  --bg-light: #f7f9fc;
  --bg-lighter: #fafbfd;
  --border: #e3e8f0;
  --success: #00C896;
  --warning: #ff6b35;
  --gradient-1: linear-gradient(135deg, #0A2540 0%, #1a3a5f 50%, #2d4f7a 100%);
  --gradient-2: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
  --gradient-3: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 10px 30px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 20px 60px rgba(10, 37, 64, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TOP BAR & NAVIGATION
   ============================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-right a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.topbar-right a:hover {
  color: var(--accent);
}

.lang-switch {
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.lang-switch:hover {
  background: rgba(255,255,255,0.15);
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,184,0,0.3) 100%);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  position: relative;
  z-index: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.nav-menu li a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-menu li a.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

.search-btn, .mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover, .mobile-menu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.search-btn:hover svg, .mobile-menu-btn:hover svg {
  fill: white;
}

.search-btn svg, .mobile-menu-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  transition: fill 0.2s;
}

.cta-btn {
  background: var(--gradient-2);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255,184,0,0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,184,0,0.4);
}

.cta-btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--gradient-1);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,184,0,0.15) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-content h1 .highlight {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-content .subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-content .chinese {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  font-weight: 400;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

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

.hero-actions .cta-btn {
  padding: 16px 32px;
  font-size: 15px;
}

.hero-actions .cta-btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: white;
  padding: 14px 30px;
}

.hero-actions .cta-btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.hero-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hero-card.featured {
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(0,212,255,0.1));
  border-color: rgba(255,184,0,0.3);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,184,0,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.hero-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.hero-card.featured h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-card.featured p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: white;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-text {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 16px;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.trust-logo:hover {
  opacity: 1;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(10,37,64,0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   GLOBAL PORTAL FEATURES
   ============================================ */
.portal-section {
  background: var(--bg-light);
}

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

.portal-card {
  background: white;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.portal-card:hover::before {
  transform: scaleX(1);
}

.portal-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.portal-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-2);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.portal-card:hover .portal-icon::before {
  opacity: 1;
}

.portal-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--accent);
}

.portal-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.portal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portal-card .feature-list {
  list-style: none;
  margin-top: 16px;
}

.portal-card .feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-card .feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ============================================
   CATEGORIES MEGA GRID
   ============================================ */
.categories-section {
  background: white;
}

.categories-mega {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-tile {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-tile:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.category-tile-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.category-tile:hover .category-tile-icon {
  background: var(--gradient-2);
}

.category-tile-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: fill 0.3s;
}

.category-tile:hover .category-tile-icon svg {
  fill: var(--primary);
}

.category-tile h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.category-tile p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.view-all-categories {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   MANUFACTURING SECTION
   ============================================ */
.manufacturing-section {
  background: var(--gradient-1);
  color: white;
  position: relative;
  overflow: hidden;
}

.manufacturing-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: 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='%23FFB800' fill-opacity='0.04'%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");
  opacity: 0.5;
}

.manufacturing-section .section-eyebrow {
  background: rgba(255,184,0,0.15);
  color: var(--accent);
}

.manufacturing-section .section-title {
  color: white;
}

.manufacturing-section .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.facility-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.facility-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-6px);
}

.facility-image {
  height: 240px;
  background: var(--gradient-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,0.3), rgba(0,212,255,0.2));
}

.facility-image svg {
  width: 100px;
  height: 100px;
  fill: white;
  position: relative;
  z-index: 1;
  opacity: 0.8;
}

.facility-content {
  padding: 32px;
}

.facility-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.facility-content h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.facility-content p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.facility-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.facility-spec {
  text-align: center;
}

.facility-spec .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.facility-spec .label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   INDUSTRY STATS
   ============================================ */
.stats-section {
  background: white;
}

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

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.stat-card:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.stat-card .stat-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.stat-card .stat-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-card .stat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   NEWS / RESOURCES
   ============================================ */
.news-section {
  background: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 200px;
  background: var(--gradient-3);
  position: relative;
  overflow: hidden;
}

.news-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,0.4), rgba(0,212,255,0.1));
}

.news-image.alt-1 {
  background: linear-gradient(135deg, #FFB800, #FF6B35);
}

.news-image.alt-2 {
  background: linear-gradient(135deg, #00C896, #00D4FF);
}

.news-image.alt-3 {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.news-image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.news-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.news-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card.featured .news-content h3 {
  font-size: 24px;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.news-card:hover .read-more::after {
  transform: translateX(4px);
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-section {
  background: white;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}

.cert-badge {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-light);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.cert-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-badge .cert-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.cert-badge .cert-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-1);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,184,0,0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-text .brand {
  color: white;
}

.footer-brand .logo-text .tagline {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-social a:hover svg {
  fill: var(--primary);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ============================================
   PAGE-SPECIFIC: PRODUCTS PAGE
   ============================================ */
.page-hero {
  background: var(--gradient-1);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,184,0,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a:hover {
  color: var(--accent);
}

.page-hero .breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin-top: 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.filter-bar {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 76px;
  z-index: 99;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tab {
  padding: 8px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-section {
  padding: 60px 0;
}

.category-group {
  margin-bottom: 80px;
}

.category-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.category-group-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-group-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.category-group-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.category-group-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.category-group-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 20px;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subcategory-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  cursor: pointer;
  text-align: left;
}

.subcategory-card:hover {
  border-color: var(--accent);
  background: var(--bg-light);
  transform: translateX(4px);
}

.subcategory-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.subcategory-card:hover .subcategory-card-icon {
  background: var(--gradient-2);
}

.subcategory-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  transition: fill 0.3s;
}

.subcategory-card:hover .subcategory-card-icon svg {
  fill: var(--primary);
}

.subcategory-card-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.subcategory-card-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    height: 400px;
  }
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-mega {
    grid-template-columns: repeat(4, 1fr);
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-card.featured {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 80px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .section-title {
    font-size: 30px;
  }
  .cta-section h2 {
    font-size: 32px;
  }
  .page-hero h1 {
    font-size: 36px;
  }
  .topbar {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .categories-mega {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card.featured {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    top: 70px;
  }
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .categories-mega {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subcategory-grid {
    grid-template-columns: 1fr;
  }
  .facility-content {
    padding: 24px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.hidden { display: none; }

/* ============================================
   LANGUAGE SWITCH (EN / 中文)
   ============================================ */
.lang-switch {
  cursor: pointer;
  user-select: none;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.08);
  color: rgba(255,255,255,0.95) !important;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.lang-switch:hover {
  background: rgba(255, 184, 0, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.lang-switch:active {
  transform: translateY(0);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* When Chinese is active, prefer CJK-optimized font stack */
body.lang-zh,
body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3,
body.lang-zh h4,
body.lang-zh p,
body.lang-zh li,
body.lang-zh a,
body.lang-zh button,
body.lang-zh span,
body.lang-zh div {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB',
               'Source Han Sans SC', 'Noto Sans CJK SC', 'Inter',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth fade when language changes */
[data-i18n] {
  transition: opacity 0.18s ease;
}
body.i18n-switching [data-i18n] {
  opacity: 0.35;
}
