/* ===============================================
   XINHONGTAI CONSTRUCTION - PREMIUM DESIGN v3.0
   Professional Construction Enterprise Website
   =============================================== */

/* ===== CSS Variables ===== */
:root {
  --primary: #002b4d;
  --primary-rgb: 0, 43, 77;
  --primary-light: #004d80;
  --primary-dark: #001a30;
  --accent: #c9a84c;
  --accent-rgb: 201, 168, 76;
  --accent-light: #dfc26e;
  --accent-dark: #a88a2e;

  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #8a8a9a;
  --text-muted: #b0b0c0;

  --bg-light: #f5f6fa;
  --bg-dark: #002b4d;
  --bg-footer: #001a30;
  --white: #ffffff;

  --border: #e8eaee;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,43,77,0.06);
  --shadow-md: 0 4px 20px rgba(0,43,77,0.08);
  --shadow-lg: 0 10px 40px rgba(0,43,77,0.12);
  --shadow-xl: 0 20px 60px rgba(0,43,77,0.18);
  --shadow-glow: 0 0 30px rgba(201,168,76,0.15);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font);
  color: var(--text-body);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

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

/* ===== Section ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-light); position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 55px;
  position: relative;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
  position: relative;
}

.section-header .subtitle::before,
.section-header .subtitle::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 10px;
  border-radius: 1px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-header h2 .highlight {
  color: var(--accent);
}

.section-header p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.btn-outline-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
  border-color: var(--accent);
}

.btn-lg { padding: 16px 42px; font-size: 16px; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ===== Top Bar ===== */
.header-top {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 3px solid var(--accent);
  line-height: 1.5;
}

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

.header-top a { color: rgba(255,255,255,0.75); font-size: 13px; }
.header-top a:hover { color: var(--accent); }
.header-top .ht-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.header-top .ht-left span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.header-top .ht-brand { font-weight: 500; }
.header-top .ht-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-top .ht-contact-link { text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; }
.header-top .lang-switcher { display: flex; gap: 4px; font-size: 12px; }
.header-top .lang-switcher a {
  padding: 2px 7px; border-radius: 4px; color: rgba(255,255,255,0.6);
  text-decoration: none; font-weight: 400; transition: all 0.2s;
}
.header-top .lang-switcher a.active {
  color: var(--accent); font-weight: 700; background: rgba(255,255,255,0.08);
}

/* ===== Header Main ===== */
.header-main {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header-main.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom-color: var(--border);
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

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

.logo img { height: 48px; }

.logo .logo-text { line-height: 1.2; }

.logo .logo-text strong {
  display: block;
  font-size: 20px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 1px;
}

.logo .logo-text span {
  display: block;
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 1.5px;
  margin-top: 1px;
  text-transform: uppercase;
  word-break: keep-all;
}

/* ===== Navigation ===== */
.nav > ul { display: flex; align-items: center; gap: 0; }
.nav > ul > li { position: relative; }

.nav > ul > li > a {
  display: block;
  padding: 0 15px;
  line-height: 78px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  letter-spacing: 0.3px;
}

.nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: transform 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.nav > ul > li:hover > a::after,
.nav > ul > li.active > a::after { transform: translateX(-50%) scaleX(1); }
.nav > ul > li:hover > a,
.nav > ul > li.active > a { color: var(--primary); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
  border-top: 3px solid var(--accent);
}

.nav > ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 11px 22px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  transition: var(--transition);
}

.dropdown li:last-child a { border-bottom: none; }

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 28px;
}

.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); line-height: 78px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 600px;
  max-height: 850px;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .bg { transform: scale(1); }

.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,43,77,0.82) 0%,
    rgba(0,43,77,0.5) 50%,
    rgba(0,43,77,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  transform: translateY(0);
}

.hero-content .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 22px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
  align-self: flex-start;
}

.hero-content .hero-title {
  font-size: 54px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
  max-width: 700px;
}

.hero-content .hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.8;
}

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

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots span.active {
  background: var(--accent);
  width: 60px;
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

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

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-xl);
  z-index: 1;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover img { transform: scale(1.03); }

.about-image .badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 35px rgba(201,168,76,0.4);
  z-index: 2;
}

.about-image .badge strong { font-size: 30px; font-weight: 800; line-height: 1; }
.about-image .badge span { font-size: 10px; opacity: 0.9; margin-top: 2px; letter-spacing: 0.5px; }

.about-text .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.about-text h3 { font-size: 32px; color: var(--primary); margin-bottom: 16px; font-weight: 800; line-height: 1.25; }
.about-text p { color: var(--text-body); margin-bottom: 14px; font-size: 15px; line-height: 1.9; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; padding: 8px; }

.stat-item .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-item .num span { font-size: 18px; }
.stat-item .label { font-size: 13px; color: var(--text-light); margin-top: 5px; font-weight: 500; }

/* ===== Business Cards ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

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

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

.business-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  transition: var(--transition-bounce);
}

.business-card:hover .icon {
  transform: rotateY(180deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,43,77,0.2);
}

.business-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }
.business-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

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

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 360px;
  display: block;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.case-card:hover img { transform: scale(1.1); }

.case-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(0,43,77,0.92) 0%,
    rgba(0,43,77,0.4) 45%,
    transparent 70%
  );
  transition: var(--transition);
}

.case-card:hover .overlay {
  background: linear-gradient(0deg,
    rgba(0,43,77,0.95) 0%,
    rgba(0,43,77,0.5) 50%,
    rgba(0,43,77,0.1) 75%
  );
}

.case-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  transition: var(--transition);
}

.case-card:hover .info { transform: translateY(-6px); }

.case-card .info .cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.case-card .info h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.case-card .info p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Strength ===== */
.strength-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.strength-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.strength-section .section-header h2 { color: var(--white); }
.strength-section .section-header p { color: rgba(255,255,255,0.65); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.strength-item {
  text-align: center;
  padding: 42px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  cursor: default;
}

.strength-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.strength-item .num {
  font-size: 46px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.strength-item .num span { font-size: 22px; }
.strength-item h4 { color: var(--white); font-size: 16px; margin: 14px 0 6px; }
.strength-item p { color: rgba(255,255,255,0.5); font-size: 13px; }

/* ===== Honors ===== */
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.honor-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}

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

.honor-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: var(--transition);
}

.honor-card:hover img { transform: scale(1.03); }

.honor-card .name {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  background: var(--bg-light);
}

/* ===== Partners ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-logo {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition);
  background: var(--white);
}

.partner-logo:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.partner-logo img {
  max-height: 46px;
  max-width: 80%;
  filter: grayscale(0.6);
  opacity: 0.5;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== Philosophy ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.philosophy-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.philosophy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.philosophy-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 8px; }
.philosophy-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

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

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.news-card .thumb {
  height: 210px;
  overflow: hidden;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .thumb img { transform: scale(1.08); }

.news-card .info { padding: 22px; }

.news-card .info .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card .info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card .info h3 a { color: var(--text-dark); }
.news-card .info h3 a:hover { color: var(--accent); }

.news-card .info p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Contact CTA ===== */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.contact-cta h3 {
  font-size: 34px;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.contact-cta p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-size: 16px;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta .btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.5);
  padding: 65px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.45); font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact li {
  padding: 5px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  margin-top: 50px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(201,168,76,0.06) 0%, transparent 50%);
}

.page-banner h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-top: 12px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); margin: 0 8px; }
.breadcrumb .current { color: var(--accent); }

/* ===== Inner Pages ===== */
.page-wrap {
  display: flex;
  gap: 40px;
  padding: 60px 0;
}

.sidebar { width: 260px; flex-shrink: 0; }

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.sidebar-title {
  padding: 16px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.sidebar-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

.sidebar-menu li { border-bottom: 1px solid var(--border); }
.sidebar-menu li:last-child { border-bottom: none; }

.sidebar-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
  transition: var(--transition);
}

.sidebar-menu li a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 26px;
}

.sidebar-menu li a:hover::before,
.sidebar-menu li.active a::before { background: var(--accent); }
.sidebar-menu li.active a { color: var(--primary); font-weight: 600; }

.main-content {
  flex: 1;
  min-width: 0;
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.main-content .content-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.content-body { font-size: 15px; line-height: 2; color: var(--text-body); }
.content-body p { margin-bottom: 16px; }

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

.contact-info-box h4 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.contact-info-box .desc { color: var(--text-light); margin-bottom: 24px; font-size: 14px; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.contact-item .ci-icon {
  width: 48px; height: 48px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .ci-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.contact-item .ci-text h5 { font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.contact-item .ci-text p { font-size: 14px; color: var(--text-light); }

.contact-form-box {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.contact-form-box h4 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.contact-form-box .form-desc { color: var(--text-light); margin-bottom: 20px; font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text-dark); }
.form-group .required { color: #e74c3c; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.btn-submit {
  padding: 14px 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

/* ===== News List ===== */
.news-list-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

.news-list-item:first-child { padding-top: 0; }
.news-list-item:hover { padding-left: 8px; }

.news-list-item .thumb {
  width: 220px; height: 150px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-list-item:hover .thumb img { transform: scale(1.06); }

.news-list-item .item-info { flex: 1; }
.news-list-item .item-info .date { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.news-list-item .item-info h3 { font-size: 17px; margin-bottom: 8px; }
.news-list-item .item-info h3 a { color: var(--text-dark); }
.news-list-item .item-info h3 a:hover { color: var(--accent); }
.news-list-item .item-info .desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Pagination ===== */
.pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-body);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-color: var(--accent);
}

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-preview { grid-template-columns: 1fr; gap: 44px; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .honors-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .page-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .contact-section { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top { padding: 6px 0; }
  .header-top .container { gap: 4px; flex-wrap: wrap; }
  .header-top .ht-left { gap: 4px 8px; }
  .header-top .ht-left span { font-size: 11px; }
  .header-top .ht-brand { max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-top .ht-phone { font-size: 10px; }
  .header-top .ht-phone-cn { display: none; }
  .header-top .ht-right { gap: 4px; flex-shrink: 0; margin-left: auto; }
  .header-top .ht-contact-link { font-size: 14px; }
  .header-top .lang-switcher { gap: 1px; }
  .header-top .lang-switcher a { padding: 1px 4px; font-size: 10px; line-height: 1.6; }

  /* ===== Mobile Nav ===== */
  .menu-toggle { display: flex; }

  /* Hamburger animation bars */
  .menu-toggle {
    width: 28px; height: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }
  .menu-bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Slide-in nav panel */
  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    display: block !important;
    padding-top: 70px;
  }
  .nav.active {
    right: 0;
  }

  /* Mobile nav header with branding */
  .nav::before {
    content: '🏗️ <?php echo addslashes(___('company_name')); ?>';
    display: block;
    padding: 16px 24px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav > ul { flex-direction: column; gap: 0; padding: 0 0 20px; }
  .nav > ul > li { border-bottom: 1px solid #f5f5f5; }
  .nav > ul > li:last-child { border-bottom: none; }
  .nav > ul > li > a {
    line-height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
  }
  .nav > ul > li > a::after { display: none; }
  .nav > ul > li.active > a { color: var(--accent); background: rgba(201,168,76,0.06); }

  /* Submenu indicator */
  .nav > ul > li:has(.dropdown) > a::after {
    display: inline-block !important;
    content: '▾';
    font-size: 10px;
    color: #bbb;
    transition: transform 0.3s;
    margin-left: 8px;
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
  }
  .nav > ul > li:has(.dropdown) > a.open::after {
    transform: rotate(180deg);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: #f8f9fa;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown.open {
    max-height: 300px;
  }
  .dropdown li a {
    padding-left: 40px !important;
    font-size: 14px;
    line-height: 42px;
  }

  /* Dark overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero { height: 60vh; min-height: 420px; }
  .hero-content .hero-title { font-size: 30px; }
  .hero-content .hero-desc { font-size: 15px; }
  .hero-content .tag { font-size: 11px; padding: 5px 16px; }

  .section { padding: 55px 0; }
  .section-header h2 { font-size: 26px; }
  .section-header .subtitle::before,
  .section-header .subtitle::after { display: none; }

  .about-text h3 { font-size: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item .num { font-size: 26px; }

  .business-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; gap: 16px; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .about-image .badge { width: 90px; height: 90px; bottom: -10px; right: -10px; }
  .about-image .badge strong { font-size: 20px; }
  .about-image img { height: 320px; }

  .page-banner h2 { font-size: 28px; }
  .main-content { padding: 20px; }
  .case-card { height: 260px; }
  .news-list-item { flex-direction: column; }
  .news-list-item .thumb { width: 100%; height: 200px; }
  .contact-cta h3 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero { height: 50vh; min-height: 360px; }
  .hero-content .hero-title { font-size: 24px; }
  .honors-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .strength-section { padding: 50px 0; }
}

/* ===== Floating Customer Service ===== */
.float-cs {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.float-cs .cs-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    border: none;
    text-decoration: none;
    font-size: 22px;
}

.float-cs .cs-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.float-cs .cs-main {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
    animation: csPulse 2s ease-in-out infinite;
}

@keyframes csPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(201,168,76,0.4); }
    50% { box-shadow: 0 4px 30px rgba(201,168,76,0.6); }
}

.float-cs .cs-main:hover {
    animation: none;
}

.float-cs .cs-item {
    width: 46px;
    height: 46px;
    background: #fff;
    color: var(--primary);
    font-size: 20px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

.float-cs.expanded .cs-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.float-cs .cs-item.cs-phone { transition-delay: 0.05s; }
.float-cs .cs-item.cs-qq { transition-delay: 0.1s; }
.float-cs .cs-item.cs-wechat { transition-delay: 0.15s; }

.float-cs .cs-item.cs-phone:hover { background: #28a745; color: #fff; }
.float-cs .cs-item.cs-qq:hover { background: #1e90ff; color: #fff; }
.float-cs .cs-item.cs-wechat:hover { background: #07c160; color: #fff; }

.float-cs .cs-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.float-cs .cs-item:hover .cs-tooltip {
    opacity: 1;
    right: 56px;
}

/* QQ dialog */
.qq-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.qq-dialog-overlay.active { display: flex; }

.qq-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: dialogIn 0.3s ease;
}

@keyframes dialogIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.qq-dialog .qq-icon { font-size: 56px; margin-bottom: 12px; }
.qq-dialog h3 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.qq-dialog p { color: #888; font-size: 14px; margin-bottom: 6px; }
.qq-dialog .qq-number { font-size: 24px; font-weight: 800; color: var(--primary); margin: 10px 0; letter-spacing: 2px; }
.qq-dialog .qq-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.qq-dialog .qq-actions .btn { min-width: 100px; justify-content: center; }
.qq-dialog .btn-close { background: #f0f0f0; color: #666; }
.qq-dialog .btn-close:hover { background: #e0e0e0; }

@media (max-width: 768px) {
    .float-cs { right: 12px; bottom: 100px; }
    .float-cs .cs-btn { width: 44px; height: 44px; font-size: 18px; }
    .float-cs .cs-main { width: 48px; height: 48px; font-size: 20px; }
    .float-cs .cs-item { width: 40px; height: 40px; font-size: 17px; }
    .float-cs .cs-tooltip { display: none; }
}
