:root {
  --primary-color: #00aa76; /* Based on logo green */
  --primary-dark: #008a5f;
  --secondary-color: #1a2c26; /* Deep forest green for backgrounds */
  --accent-color: #dcb14a; /* Gold accent */
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e1e4e8;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 118, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 1rem;
}

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

/* Header */
.site-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

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

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

.logo img {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.brand-suffix {
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  top: 0;
}
.mobile-menu-toggle span:nth-child(2) {
  top: 9px;
}
.mobile-menu-toggle span:last-child {
  bottom: 0;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: 1;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
}

/* Services */
.section {
  padding: var(--sp-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  background-color: #fafafa;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* About */
.about-section {
  background-color: var(--bg-light);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-placeholder {
  height: 400px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.pattern-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact */
.contact-section {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: var(--sp-xl) 0;
}

.contact-box {
  text-align: center;
}

.section-title.white {
  color: var(--white);
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background-color: #111;
  color: #999;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 2rem;
  width: 100%;
}

.footer-bottom a {
  color: #999;
  margin-top: 5px;
  display: inline-block;
}

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

.beian-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.beian-divider {
  color: #555;
  margin: 0 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --sp-xl: 4rem;
    --sp-lg: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    padding: 5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.25rem;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image-placeholder {
    order: -1;
    height: 250px;
  }
}
