/* ========== CSS Variables ========== */
:root {
  --primary: #1a73e8;
  --primary-light: #4285f4;
  --primary-lighter: #669df6;
  --primary-dark: #1557b0;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d1b2a;
  --text-dark: #202124;
  --text-gray: #5f6368;
  --text-light: #9aa0a6;
  --success: #34a853;
  --danger: #ea4335;
  --warning: #fbbc04;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 16px;
  color: var(--text-gray);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-blue {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-blue:hover { background: var(--primary); color: var(--white); }

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  display: block;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a237e 50%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(66,133,244,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 600px; }
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  flex-shrink: 0;
}
.hero-visual img {
  width: 400px;
  height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
}

/* ========== Features / Services Cards ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #e8eaed;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--white);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ========== About Page Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a237e 50%, var(--primary) 100%);
  padding: 140px 0 80px;
  text-align: center;
  color: var(--white);
}
.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ========== About Content ========== */
.about-content { font-size: 15px; line-height: 1.8; color: var(--text-gray); }
.about-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 36px 0 16px;
}
.about-content p { margin-bottom: 16px; }
.about-content ul { padding-left: 20px; margin-bottom: 16px; }
.about-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-gray);
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 30px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-lighter);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 15px;
  color: var(--text-gray);
}

/* ========== Values ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
}
.value-card:hover { background: var(--primary); color: var(--white); }
.value-card:hover p { color: rgba(255,255,255,0.85); }
.value-icon { font-size: 36px; margin-bottom: 12px; }
.value-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-gray); }

/* ========== Team ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.team-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--white);
}
.team-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--text-gray); }

/* ========== Cases Grid ========== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
}
.case-body { padding: 24px; }
.case-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }
.case-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  background: rgba(26,115,232,0.1);
  color: var(--primary);
  margin-top: 12px;
}

/* ========== Contact Page ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-input-error { border-color: #ea4335 !important; }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  margin-bottom: 20px;
  transition: var(--transition);
}
.contact-info-card:hover { background: #e8f0fe; }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; color: var(--text-gray); }

/* ========== Map Placeholder ========== */
.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  border: 2px dashed #dadce0;
  margin-top: 30px;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; }
.footer h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ========== Stats Counter ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-item p { font-size: 14px; color: var(--text-gray); }

/* ========== Certifications ========== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.cert-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
}
.cert-card:hover { background: #e8f0fe; }
.cert-icon { font-size: 40px; margin-bottom: 12px; }
.cert-card h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* ========== Advantages ========== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.advantage-item {
  text-align: center;
  padding: 30px 20px;
}
.advantage-item .adv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--white);
}
.advantage-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }

/* ========== Service Detail ========== */
.service-detail {
  padding: 60px 0;
}
.service-detail:nth-child(even) { background: var(--bg-light); }
.service-detail .container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.service-detail:nth-child(even) .container { flex-direction: row-reverse; }
.service-text { flex: 1; }
.service-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.service-text p { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin-bottom: 16px; }
.service-text ul { padding-left: 0; }
.service-text ul li {
  list-style: none;
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-gray);
}
.service-text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.service-visual {
  flex: 1;
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 64px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 36px; }
  .hero-visual img { width: 300px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail .container { flex-direction: column !important; gap: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 26px; }

  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-menu a { padding: 12px 0; width: 100%; border-bottom: 1px solid #f1f3f4; }

  .hero { padding-top: 70px; }
  .hero .container { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content .subtitle { font-size: 15px; }
  .hero-buttons { justify-content: center; }
  .hero-visual img { width: 220px; height: 220px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-banner { padding: 120px 0 60px; }
  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
