/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== Variables ===== */
:root {
  --primary: #2d8a4e;
  --primary-dark: #257a3e;
  --primary-light: #4CAF50;
  --text-dark: #333;
  --text-light: #666;
  --text-muted: #888;
  --bg-light: #f9f9f9;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== Common Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  padding: 0 60px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.logo-en {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  color: var(--text-dark);
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

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

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.phone-btn:hover {
  background: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 60px 30px;
}

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

.footer-about h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.footer-about p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.8;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: #aaa;
  transition: color 0.3s;
}

.footer ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* ===== Sub Page Banner ===== */
.sub-banner {
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.sub-banner h1 {
  font-size: 42px;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.card-img picture {
  width: 100%;
  height: 100%;
  display: block;
}

.card-img picture img,
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 24px;
  flex: 1;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  color: var(--text-light);
}

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

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ===== Cert Grid ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.case-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.case-item:hover { transform: scale(1.03); }

.case-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-name {
  padding: 16px;
  background: white;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.case-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.case-tab {
  padding: 10px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.case-tab:hover, .case-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* ===== Hero Banner ===== */
.hero {
  height: 500px;
  background: linear-gradient(135deg, #2d8a4e 0%, #4CAF50 100%);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

/* ===== Advantages ===== */
.advantages { background: #f9f9f9; }

.adv-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.adv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.adv-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2d8a4e, #4CAF50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  overflow: hidden;
}
.adv-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adv-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.adv-card p {
  font-size: 14px;
  color: #666;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #2d8a4e, #4CAF50);
  color: white;
  text-align: center;
}

.cta h2 { font-size: 36px; margin-bottom: 16px; }
.cta p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.cta-phone { font-size: 48px; font-weight: 700; margin-bottom: 30px; letter-spacing: 2px; }

.btn-white {
  background: white;
  color: #2d8a4e;
  border: none;
  padding: 18px 50px;
  border-radius: 35px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-white:hover { background: #f5f5f5; }

/* ===== Tech Steps ===== */
.tech-steps { max-width: 800px; margin: 0 auto; }

.tech-step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.tech-step-num {
  width: 60px;
  height: 60px;
  background: #2d8a4e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.tech-step-content h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.tech-step-content p {
  color: #666;
  line-height: 1.8;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* ===== Contact Cards ===== */
.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  color: white;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    height: 60px;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 60px 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
/* ===== 图片效果 ===== */
/* picture 元素是 block 级别 */
picture {
  display: block;
}

/* 轮播图和logo不需要特殊样式 */
.hero-slider picture,
.logo picture {
  display: inline-block;
}.logo picture {
  background-color: transparent;
}
