/* =============================================
   Wuhan Chenshanxing Trading Co., Ltd - Corporate Website
   Professional Trade & Supply Chain Style
   ============================================= */

/* === CSS Variables === */
:root {
  --primary: #1E40AF;
  --primary-dark: #16308A;
  --primary-light: #3B5FCA;
  --secondary: #334155;
  --secondary-light: #64748B;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-gray: #F1F5F9;
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --accent: #2563EB;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.25s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Navbar === */
.navbar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.navbar-brand .brand-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-zh {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.navbar-brand .brand-en {
  font-size: 0.7rem;
  color: var(--secondary-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 20px 18px;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(30,64,175,0.15);
  outline: none;
}

.navbar-toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
  position: relative;
  transition: background var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transition: transform var(--transition);
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

/* === Hero Banner === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1f2e 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,64,175,0.88) 0%, rgba(51,65,85,0.92) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 0.95rem;
}

/* === Section Common === */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-header .section-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-header p {
  color: var(--secondary-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* === About / Intro Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary-light);
  margin-top: 8px;
  display: block;
}

/* === Service Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(30,64,175,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--secondary-light);
  line-height: 1.7;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* === Footer === */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-about p {
  line-height: 1.8;
  font-size: 0.88rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item .contact-icon {
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* === Page Header (Inner Pages) === */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1f2e 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/img08.jpg') center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header .breadcrumb-nav {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.page-header .breadcrumb-nav a {
  color: rgba(255,255,255,0.85);
}

.page-header .breadcrumb-nav a:hover {
  color: #fff;
}

/* === Service Detail Page === */
.service-detail {
  padding: 80px 0;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.service-detail-block:last-child {
  margin-bottom: 0;
}

.service-detail-block.reverse {
  direction: rtl;
}

.service-detail-block.reverse .service-detail-content {
  direction: ltr;
}

.service-detail-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.service-detail-content .service-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(30,64,175,0.12);
  line-height: 1;
  margin-bottom: 8px;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-detail-content p {
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.8;
}

.service-detail-content ul {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.service-detail-content ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text-body);
  font-size: 0.93rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* === Contact Page === */
.contact-section {
  padding: 80px 0;
}

/* --- Contact Hero Card: Left Info + Right Image --- */
.contact-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-white);
}

.contact-hero-bg {
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 520px;
  background-color: var(--bg-light);
}

.contact-hero-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.contact-hero-content h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.contact-hero-content > p {
  color: var(--secondary-light);
  margin-bottom: 28px;
  line-height: 1.8;
  font-size: 0.93rem;
}

.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: rgba(30,64,175,0.25);
}

.contact-card .contact-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(30,64,175,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 0.87rem;
  color: var(--secondary-light);
  line-height: 1.7;
}

/* === Company Values === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: rgba(30,64,175,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--primary);
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--secondary-light);
  line-height: 1.7;
}

/* === Animations === */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-detail-block.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-card {
    grid-template-columns: 1fr;
  }

  .contact-hero-bg {
    min-height: 300px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 420px;
  }

  .section {
    padding: 52px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-item {
    padding: 14px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    padding: 8px 0;
  }

  .nav-link {
    padding: 12px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

/* === Utility === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
