/* ============================================
   CNP 广东中牌科技 — Japanese Industrial Precision
   Design inspired by Yaskawa / 安川电机
   Aesthetic: Clean · Precise · Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== Design Tokens ========== */
:root {
  /* Primary Palette */
  --blue-900: #0a1628;
  --blue-800: #0d2240;
  --blue-700: #123566;
  --blue-600: #1a4f9e;
  --blue-500: #0066cc;
  --blue-400: #3388dd;
  --blue-300: #66aaee;
  --blue-200: #b3d4f7;
  --blue-100: #dceaf9;
  --blue-50: #f0f5fb;

  /* Neutrals */
  --gray-900: #1a1a1a;
  --gray-800: #333333;
  --gray-700: #4d4d4d;
  --gray-600: #666666;
  --gray-500: #808080;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e0e0e0;
  --gray-150: #ebebeb;
  --gray-100: #f2f2f2;
  --gray-50: #f8f9fa;

  /* Semantic */
  --white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --bg-dark: #0d2240;
  --bg-footer: #0a1628;

  /* Accent */
  --accent: var(--blue-500);
  --accent-dark: var(--blue-700);
  --accent-light: var(--blue-300);
  --accent-bg: var(--blue-50);
  --accent-border: var(--blue-200);

  /* Text */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.7);

  /* Borders */
  --border-default: var(--gray-200);
  --border-light: var(--gray-150);
  --border-medium: var(--gray-300);

  /* Typography */
  --font-display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.75;
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

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

::selection {
  background: var(--accent);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== Top Bar ========== */
.top-bar {
  background: var(--bg-dark);
  font-size: 12px;
  padding: 8px 0;
  color: var(--text-on-dark-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: var(--text-on-dark);
}

/* ========== Header / Navigation ========== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

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

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-body);
  letter-spacing: 1px;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

nav a:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

nav a:hover::after {
  transform: scaleX(1);
}

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

nav a.active::after {
  transform: scaleX(1);
}

/* Language switcher style */
.nav-lang {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  transition: all var(--transition-fast);
  line-height: 1;
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-dark) 0%, #0f2d55 40%, #153e6b 100%);
}

/* Grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* Light accent at bottom-right */
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,204,0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  color: var(--blue-200);
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-300);
  border-radius: 50%;
  animation: indicatorPulse 2.5s infinite;
}

@keyframes indicatorPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(102,170,238,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(102,170,238,0); }
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.hero h2 .highlight {
  color: var(--blue-300);
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--blue-400);
  margin-bottom: 20px;
  border-radius: 2px;
}

.hero p {
  font-size: 16px;
  max-width: 560px;
  color: var(--text-on-dark-muted);
  line-height: 1.9;
  margin-bottom: 36px;
  font-weight: 400;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,102,204,0.25);
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero .btn-outline {
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.3);
}

.hero .btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Light-section outline button */
.section-light .btn-outline,
.section .btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}

.section-light .btn-outline:hover,
.section .btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn .arrow {
  transition: transform var(--transition);
  font-size: 16px;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ========== Section ========== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-elevated {
  background: var(--white);
}

.section-blue {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-title {
  margin-bottom: 56px;
}

.section-title.center {
  text-align: center;
}

.section-title .overline {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-blue .section-title .overline {
  color: var(--blue-300);
}

.section-title h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-blue .section-title h3 {
  color: var(--text-on-dark);
}

.section-title .subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

.section-title.center .subtitle {
  margin: 0 auto;
}

.section-blue .section-title .subtitle {
  color: var(--text-on-dark-muted);
}

/* Decorative accent line */
.section-title h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}

.section-title.center h3::after {
  margin-left: auto;
  margin-right: auto;
}

.section-blue .section-title h3::after {
  background: var(--blue-400);
}

/* ========== Stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-card {
  padding: 40px 28px;
  text-align: center;
  transition: background var(--transition);
  position: relative;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--border-light);
}

.stat-card:hover {
  background: var(--accent-bg);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-card .num span {
  font-size: 20px;
  color: var(--blue-300);
  font-weight: 500;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========== About Section ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img {
  background: transparent;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,102,204,0.08) 0%, transparent 70%);
}

.about-img-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-img-content .hero-logo-img {
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-img-content p .about-table1,
.about-img-content p .about-table2,
.about-img-content p .about-table3
 {
  font-size: 150px;
  font-weight: 700;
}

.about-img-content p:first-child span:nth-child(1) {
  color: #e40d0d;
}

.about-img-content p:first-child span:nth-child(2) {
  color: #0b0bf0;
}

.about-img-content p:first-child span:nth-child(3) {
  color: #087008;
}
.about-img-content p
{
margin: -45px;
}
.about-img-content .about-table4,
.about-img-content .about-table5,
.about-img-content .about-table6 {
  display: inline-block;
  font-size: 0;
  border-radius: var(--radius-sm);
}

.about-img-content .about-table4 {
  width: 110px;
  height: 50px;
  background-color: #e40d0d;
}

.about-img-content .about-table5 {
  width: 110px;
  height: 80px;
  background-color: #0b0bf0;
}

.about-img-content .about-table6 {
   width: 110px;
  height: 110px;
  background-color: #087008;
}

.about-img-content .logo-text {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--accent);
}

.about-img-content .sub-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 15px;
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ========== Products Grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.product-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.product-card .icon {
  width: 52px;
  height: 52px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--accent);
}

.product-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Dark section product cards */
.section-dark .product-card {
  background: var(--white);
}

/* Blue section product cards */
.section-blue .product-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

.section-blue .product-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.section-blue .product-card h4 {
  color: var(--text-on-dark);
}

.section-blue .product-card p {
  color: var(--text-on-dark-muted);
}

.section-blue .product-card .icon {
  background: rgba(255,255,255,0.08);
  color: var(--blue-300);
}

/* ========== Certifications ========== */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cert-item {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.cert-item:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-item .badge {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Client Logos ========== */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
}

.client-logos span {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.client-logos span:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ========== Page Banner ========== */
.page-banner {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-dark) 0%, #0f2d55 50%, #153e6b 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner .overline {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 12px;
}

.page-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-on-dark);
  letter-spacing: -0.5px;
}

.page-banner .divider {
  width: 40px;
  height: 3px;
  background: var(--blue-400);
  margin: 0 auto 14px;
  border-radius: 2px;
}

.page-banner p {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== Milestone Timeline ========== */
.milestone-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.milestone-list::before {
  content: '';
  position: absolute;
  left: 95px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--blue-200));
}

.milestone {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  padding: 28px 0;
}

.milestone::before {
  content: '';
  position: absolute;
  left: 89px;
  top: 34px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition);
}

.milestone:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,102,204,0.15);
}

.milestone .year {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  min-width: 80px;
  line-height: 1;
  text-align: right;
}

.milestone .desc {
  padding-left: 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
}

/* ========== Branches ========== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.branch-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.branch-card .tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tag-main {
  background: var(--accent-bg);
  color: var(--accent);
}

.tag-hk {
  background: #fef3c7;
  color: #b45309;
}

.tag-fs {
  background: #d1fae5;
  color: #065f46;
}

.tag-hf {
  background: #e0e7ff;
  color: #3730a3;
}

.tag-cd {
  background: #fce7f3;
  color: #9d174d;
}

.branch-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.branch-card .branch-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.branch-card .info-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.branch-card .info-row:last-child {
  border-bottom: none;
}

.branch-card .info-row .label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  flex-shrink: 0;
}

.branch-card .info-row .value {
  color: var(--text-secondary);
}

/* ========== Product Detail Grid ========== */
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-detail-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}

.product-detail-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.product-detail-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent-bg);
  font-weight: 700;
}

.product-detail-card ul {
  list-style: none;
  padding: 0;
}

.product-detail-card ul li {
  padding: 9px 0 9px 18px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.product-detail-card ul li:last-child {
  border-bottom: none;
}

.product-detail-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Dark section product detail */
.section-dark .product-detail-card {
  background: var(--white);
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item .ci-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-item .ci-text strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.contact-item .ci-text a {
  color: var(--accent);
}

/* Branch contact cards */
.branch-contact-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.branch-contact-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.branch-contact-card h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.branch-contact-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ========== Form ========== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ========== Architecture Diagram ========== */
.arch-diagram {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.arch-parent {
  background: linear-gradient(135deg, var(--accent), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0,102,204,0.2);
}

.arch-parent .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.arch-parent .sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 1px;
}

.arch-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), var(--blue-200));
  margin: 0 auto 0;
}

.arch-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.arch-branch {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.arch-branch:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.arch-branch .name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-branch .sub {
  font-size: 12px;
  color: var(--text-muted);
}

.arch-branch.hk {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.arch-branch.hk .name {
  color: #b45309;
}

.arch-branch.fs {
  border-left: 3px solid #10b981;
  background: #ecfdf5;
}

.arch-branch.fs .name {
  color: #065f46;
}

.arch-children {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-default);
}

.arch-child {
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  border-left: 2px solid #10b981;
}

.arch-child:last-child {
  margin-bottom: 0;
}

.arch-child .name {
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 2px;
}

.arch-child .sub {
  font-size: 11px;
  color: var(--text-muted);
}

.arch-branch.hf {
  border-left: 3px solid #6366f1;
  background: #eef2ff;
}

.arch-branch.hf .name {
  color: #3730a3;
}

.arch-branch.cd {
  border-left: 3px solid #ec4899;
  background: #fdf2f8;
}

.arch-branch.cd .name {
  color: #9d174d;
}

/* ========== Footer ========== */
footer {
  background: var(--bg-footer);
  padding: 64px 0 28px;
  color: var(--text-on-dark-muted);
}

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

footer h5 {
  font-family: var(--font-display);
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

footer p,
footer a {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 2.2;
}

footer a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

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

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ========== Scroll Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children delay */
.stagger > *:nth-child(1) { transition-delay: 0.00s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ========== Breadcrumb (for subpages) ========== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb .sep {
  color: var(--text-light);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2n+1) {
    border-left: none;
  }

  .stat-card:nth-child(n+3) {
    border-top: 1px solid var(--border-light);
  }

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

  .about-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 12px;
    width: 100%;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  nav a::after {
    display: none;
  }

  nav a.active {
    background: var(--accent-bg);
  }

  .nav-lang {
    margin-left: 0;
    padding-left: 12px;
    border-left: none;
    border-top: 1px solid var(--border-default);
    padding-top: 12px;
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 60px;
  }

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

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

  .stats {
    margin-top: -30px;
  }

  .stat-card {
    padding: 28px 18px;
  }

  .stat-card .num {
    font-size: 34px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h3 {
    font-size: 26px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .page-banner {
    min-height: 180px;
  }

  .page-banner h2 {
    font-size: 28px;
  }

  .milestone-list::before {
    left: 60px;
  }

  .milestone::before {
    left: 54px;
    top: 30px;
  }

  .milestone .year {
    min-width: 50px;
    font-size: 20px;
    line-height: 1;
    text-align: left;
  }

  .milestone {
    gap: 16px;
  }

  .milestone .desc {
    padding-left: 10px;
    font-size: 14px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .arch-diagram {
    padding: 32px 20px;
  }

  .arch-branches {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

  .stat-card {
    padding: 22px 14px;
  }

  .stat-card .num {
    font-size: 28px;
  }

  .cert-list {
    flex-direction: column;
  }

  .cert-item {
    justify-content: center;
  }
}
