:root {
  --color-primary: #0099cc;
  --color-accent: #ffcc00;
  --color-text: #111111;
  --color-muted: #5f6877;
  --color-gray: #989898;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e5e5e5;
  --color-dark: #08111f;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Source Han Sans", "PingFang SC", sans-serif;
  color: var(--color-text);
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  min-width: 1200px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  width: var(--container);
  margin: 0 auto;
  padding: 0 12px;
}

.logo a {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  display: block;
  padding: 0 24px;
  line-height: 82px;
  font-size: 16px;
  color: #333;
  text-align: center;
  transition: 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: #e8eef5;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 300px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 50%;
}

.hero-content {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 40px;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  background: var(--color-primary);
  display: inline-block;
  padding: 6px 18px;
}

.hero-highlight {
  color: var(--color-accent);
}

.hero-content p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  background: #33ccff;
  display: inline-block;
  padding: 4px 18px;
}

.hero-content .btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 20px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  background: transparent;
}

/* Hero dots */
.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: rgb(204, 204, 204);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: rgb(254, 197, 2);
}

/* ===== Section ===== */
.section {
  padding: 60px 0 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tagline {
  text-align: center;
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--color-border);
}

.stat-card strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-card span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-muted);
}

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

.service-card {
  display: block;
  border: 1px solid var(--color-border);
  transition: 0.2s;
}

.service-card:hover {
  border-color: var(--color-primary);
}

.service-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 14px;
}

.service-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.service-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.service-body .btn-sm {
  font-size: 13px;
  color: var(--color-primary);
}

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

.industry-card {
  border: 1px solid var(--color-border);
}

.industry-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-body {
  padding: 14px;
}

.industry-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.industry-body p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== Feature Grid (Strengths) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  border: 1px solid var(--color-border);
  padding: 24px 18px;
}

.feature-index {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ===== About Layout ===== */
.about-layout {
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  padding: 30px;
  border: 1px solid var(--color-border);
}

.about-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-muted);
  margin: 0 0 16px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bullet-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
  color: var(--color-text);
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-primary);
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Partner Grid ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border: 1px solid var(--color-border);
  padding: 10px;
}

.partner-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.partner-card span {
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 24px 18px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-card small {
  display: block;
  font-size: 12px;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-strip {
  padding: 60px 0 40px;
  background: #f8f9fb;
}

/* ===== Form ===== */
.contact-form-wrap {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 30px;
  border: 1px solid var(--color-border);
  background: #fafafa;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: 0.15s;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #0077a3;
  color: #fff;
  border-color: #0077a3;
}

.btn-lg {
  min-height: 48px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-sm {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

/* ===== Page Hero ===== */
.page-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: #f8f9fb;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
}

.page-hero p {
  margin: 0;
  font-size: 16px;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Detail Layout ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.detail-gallery img {
  width: 100%;
  border: 1px solid var(--color-border);
}

.detail-body h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-muted);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* ===== Footer ===== */
footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  text-align: left;
  margin-bottom: 30px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.footer-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 16px;
  font-size: 12px;
  color: var(--color-gray);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  header { min-width: auto; }
  .topbar { min-height: 60px; }
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 99;
  }

  header.nav-open .nav { display: flex; }

  .nav a {
    line-height: 44px;
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
  }

  .hero-slides,
  .hero { min-height: 200px; height: 200px; }
  .hero-content { padding: 0 16px; }
  .hero-content h1 { font-size: 18px; padding: 4px 12px; }
  .hero-content p { font-size: 14px; padding: 3px 12px; }

  .stats-grid,
  .service-grid,
  .industry-grid,
  .feature-grid,
  .partner-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bullet-list { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .section { padding: 40px 0 10px; }
  .section-heading h2 { font-size: 22px; }
}
