/* ECC Thailand Corporate Website - Business Blue Theme */
:root {
  --primary: #1B4F9C;
  --primary-dark: #0D2B5E;
  --primary-light: #2A6BC4;
  --bg-light: #F5F8FC;
  --text-dark: #1A1A2E;
  --text-secondary: #666;
  --text-light: #999;
  --white: #fff;
  --border: #E8EDF3;
  --shadow: 0 4px 20px rgba(27, 79, 156, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

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

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: 80px;
}
.header-container {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  height: 80px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 54px; height: 54px; object-fit: cover;
  border-radius: 2px;
}
.logo-name {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  line-height: 1.3; letter-spacing: 0.01em;
  white-space: normal; max-width: 280px;
}

/* Navigation - centered */
.nav-wrapper { display: flex; justify-content: center; }
.main-nav {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; }
.nav-link {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 18px; position: relative;
  color: var(--text-dark); text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.nav-cn { font-size: 15px; font-weight: 500; line-height: 1.3; }
.nav-en { font-size: 11px; color: var(--text-secondary); font-weight: 400; line-height: 1.2; margin-top: 1px; }
/* English/Thai single-line nav */
.nav-link:only-child .nav-cn,
.main-nav .nav-link:not(:has(.nav-en)) .nav-cn { font-size: 15px; }
.nav-link:hover .nav-cn, .nav-link.active .nav-cn { color: var(--primary); }
.nav-link:hover .nav-en, .nav-link.active .nav-en { color: var(--primary-light); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 18px; right: 18px;
  height: 2px; background: var(--primary); border-radius: 1px;
}
.nav-caret { font-size: 11px; margin-left: 4px; color: var(--text-secondary); transition: transform 0.2s; }
.nav-has-dropdown { position: relative; }
.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown.nav-open .nav-caret { transform: rotate(180deg); color: var(--primary); }
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  min-width: 240px; background: var(--white);
  border-radius: 8px; box-shadow: 0 12px 40px rgba(27,79,156,0.18);
  border: 1px solid var(--border); padding: 8px 0;
  list-style: none; margin: 0; display: none;
  z-index: 10000;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.nav-open .nav-dropdown { display: block; }
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block; padding: 12px 24px; font-size: 15px;
  color: var(--text-dark); text-decoration: none; white-space: nowrap;
  transition: var(--transition); position: relative; z-index: 1;
}
.nav-dropdown a:hover { background: var(--bg-light); color: var(--primary); }

/* Header right */
.header-right {
  display: flex; align-items: center; gap: 20px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.lang-switch a {
  color: var(--text-secondary); padding: 2px 4px;
  transition: var(--transition);
}
.lang-switch a.active { color: var(--primary); font-weight: 600; }
.lang-switch a:hover { color: var(--primary); }
.lang-sep { color: #ccc; font-size: 12px; user-select: none; }

.btn-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white) !important;
  padding: 10px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: var(--transition);
  min-width: 88px;
}
.btn-header-cta:hover { background: var(--primary-light); color: var(--white) !important; }

.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--primary); padding: 4px; }

.btn-primary {
  display: inline-block; background: var(--primary); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-light); color: var(--white) !important; }
.btn-outline {
  display: inline-block; border: 2px solid var(--white); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  background: transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 560px; margin-top: 80px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.85) 0%, rgba(27,79,156,0.75) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; padding: 80px 0; }
.hero-content h1 { font-size: 36px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; max-width: 720px; }
.hero-content p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.hero-dots span.active { background: var(--white); }

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.section-title p { font-size: 15px; color: var(--text-secondary); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h3 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.about-title-link { color: var(--primary); text-decoration: none; transition: var(--transition); }
.about-title-link:hover { color: var(--primary-light); }
.about-excerpt { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.about-text p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.about-img-link { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.about-img-link:hover { box-shadow: 0 8px 24px rgba(27,79,156,0.18); transform: translateY(-2px); }
.about-img-link img { width: 100%; height: 360px; object-fit: cover; display: block; }
.btn-about-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 20px; padding: 12px 28px;
  background: var(--primary); color: var(--white) !important;
  border-radius: 6px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(27,79,156,0.28);
}
.btn-about-more:hover {
  background: var(--primary-light); color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,79,156,0.32);
}
.btn-about-more i { font-size: 16px; transition: transform 0.2s; }
.btn-about-more:hover i { transform: translateX(4px); }
.stats-row { display: flex; gap: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: var(--transition); display: flex; gap: 16px; align-items: flex-start;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.service-card-link { text-decoration: none; color: inherit; cursor: pointer; }
.service-card-link:hover h4 { color: var(--primary); }

/* ===== Homepage MVV ===== */
.section-mvv { background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%); }
.home-mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-mvv-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  text-align: center; border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  box-shadow: 0 4px 16px rgba(27,79,156,0.06);
  transition: var(--transition);
}
.home-mvv-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27,79,156,0.12); border-color: rgba(27,79,156,0.2); }
.home-mvv-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: var(--bg-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 24px;
}
.home-mvv-card h4 { font-size: 18px; color: var(--primary); margin-bottom: 14px; font-weight: 700; }
.home-mvv-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin: 0; }
.home-mvv-values { font-weight: 700; color: var(--primary); font-size: 15px; letter-spacing: 0.04em; }
.home-adv-grid { margin-top: 8px; }
.service-icon {
  width: 48px; height: 48px; background: var(--bg-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary); font-size: 20px;
}
.service-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Why Choose Us ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-item { text-align: center; padding: 40px 24px; position: relative; }
.why-num {
  font-size: 64px; font-weight: 800; color: rgba(27,79,156,0.08);
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
}
.why-item h4 { font-size: 18px; color: var(--primary); margin: 24px 0 12px; position: relative; }
.why-item p { font-size: 14px; color: var(--text-secondary); position: relative; }

/* ===== Cases ===== */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.case-card:hover { transform: translateY(-4px); }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-card .case-info { padding: 16px; }
.case-card h4 { font-size: 14px; margin-bottom: 4px; }
.case-card p { font-size: 12px; color: var(--text-secondary); }
.view-all { text-align: center; margin-top: 32px; }
.view-all a { color: var(--primary); font-weight: 500; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-2px); }
.news-date { font-size: 13px; color: var(--primary); margin-bottom: 12px; }
.news-card h4 { font-size: 16px; margin-bottom: 12px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.news-card .read-more { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ===== Contact Section ===== */
.contact-section {
  position: relative; color: var(--white); padding: 80px 0; overflow: hidden;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.92) 0%, rgba(27,79,156,0.88) 100%),
    url('../images/banner-bg.jpg') center/cover no-repeat;
  z-index: 0;
}
.contact-section .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 28px; margin-bottom: 24px; }
.contact-detail { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-detail i { width: 20px; text-align: center; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--white) !important;
}
.social-links a:hover { background: rgba(255,255,255,0.3); }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; }
.contact-form h4 { color: var(--text-dark); font-size: 18px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }

/* ===== Contact Page (Creote Style) ===== */
.contact-page { background: var(--bg-light); }
.contact-page > .container {
  max-width: 1140px; margin: 0 auto;
}
.contact-page .breadcrumb { padding-top: 8px; }
.contact-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto;
  padding: 48px 0 64px; align-items: start;
}
.contact-form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.creote-field { margin-bottom: 22px; }
.creote-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-dark); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.creote-field label small {
  font-weight: 400; color: var(--text-light); margin-left: 6px;
  text-transform: none; letter-spacing: 0;
}
.field-wrap { position: relative; }
.field-wrap input,
.field-wrap textarea {
  width: 100%; padding: 14px 44px 14px 16px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: var(--white); outline: none;
  transition: var(--transition); font-family: inherit;
}
.field-wrap textarea { height: 130px; resize: vertical; padding-right: 44px; }
.field-wrap input:focus,
.field-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,156,0.1); }
.field-wrap > i {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 16px; pointer-events: none;
}
.field-wrap textarea + i { top: 20px; transform: none; }
.captcha-wrap img {
  position: absolute; right: 4px; top: 4px; height: calc(100% - 8px);
  border-radius: 4px; cursor: pointer;
}
.btn-submit {
  width: 100%; padding: 14px; border: none; border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-light); }

.contact-info-panel h2 {
  font-size: 28px; color: var(--text-dark); margin-bottom: 16px; line-height: 1.3;
}
.contact-intro {
  color: var(--text-secondary); font-size: 15px; line-height: 1.8;
  margin-bottom: 28px;
}
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.info-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(27,79,156,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-body h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.info-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.info-body a { color: var(--primary); }
.contact-social { display: flex; gap: 10px; margin-top: 24px; }
.contact-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.contact-social a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.contact-map-section {
  width: 100%; height: 450px; background: #e8edf3;
}
.contact-map-section iframe { display: block; width: 100%; height: 100%; }

@media (max-width: 992px) {
  .contact-main { grid-template-columns: 1fr; gap: 32px; }
  .contact-map-section { height: 360px; }
}
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-grid h5 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px;
}

/* ===== Inner Pages ===== */
.page-banner {
  position: relative; margin-top: 80px; padding: 80px 0; text-align: center;
  color: var(--white); overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.82) 0%, rgba(27,79,156,0.78) 100%),
    var(--banner-img, url('../images/banner-bg.jpg')) center/cover no-repeat;
  z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 28px; line-height: 1.35; max-width: 900px; margin: 0 auto 8px; }
.page-banner p { opacity: 0.9; font-size: 15px; }
.page-content { padding: 48px 0; min-height: 400px; }
/* 内页横幅与正文列表之间留出间距 */
.page-banner + .container.page-content,
.page-banner + .container.about-page-wrap { padding-top: 56px; }

/* ===== About Page ===== */
.about-stats-bar {
  position: relative; z-index: 5; margin-top: -56px; margin-bottom: 8px;
}
.about-stats-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27,79,156,0.12);
  border: 1px solid rgba(27,79,156,0.08);
  overflow: hidden;
}
.about-stats-list li {
  flex: 1; min-width: 140px; text-align: center;
  padding: 28px 16px; border-right: 1px solid var(--border);
}
.about-stats-list li:last-child { border-right: none; }
.about-stats-list strong {
  display: block; font-size: 32px; font-weight: 700;
  color: var(--primary); line-height: 1.2; margin-bottom: 8px;
}
.about-stats-list span {
  display: block; font-size: 14px; color: var(--text-secondary);
}
.about-page-wrap { padding: 32px 0 64px; }
.about-mvv-single { scroll-margin-top: 100px; }
.about-mvv-single .about-mvv-text { font-size: 17px; line-height: 1.9; color: var(--text-body); margin: 0; }
.about-block { scroll-margin-top: 100px; }
.services-detail-section { padding-top: 48px; }
.services-page-grid .about-svc-col { scroll-margin-top: 100px; }
.services-page-grid { gap: 24px; }
.services-intro { padding-bottom: 24px; }
.about-detail-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 4px 24px rgba(27,79,156,0.08);
  padding: 48px 56px; border: 1px solid rgba(27,79,156,0.06);
}
.about-rich-content { font-size: 16px; line-height: 1.85; color: var(--text-body); }
.about-page-cta {
  margin-top: 40px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #0d2b5e 0%, var(--primary) 50%, #2a6bc4 100%);
  box-shadow: 0 8px 24px rgba(27,79,156,0.2);
}
.about-page-cta-inner { text-align: center; padding: 48px 32px; color: var(--white); }
.about-page-cta-inner h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.about-page-cta-inner p { font-size: 15px; opacity: 0.9; margin-bottom: 24px; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; background: var(--white); color: var(--primary) !important;
  border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-cta-white:hover { background: #f0f4fa; transform: translateY(-2px); }
.about-page .about-block { margin-bottom: 52px; }
.about-page .about-block:last-child { margin-bottom: 0; }
.about-page .about-block h2 {
  font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 20px;
  padding: 12px 0 12px 16px; border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}
.about-page .about-block p { margin-bottom: 16px; line-height: 1.9; color: var(--text-body); font-size: 15px; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 20px; padding: 0;
}
.about-tags li {
  background: var(--bg-light); color: var(--primary); font-size: 14px;
  padding: 8px 18px; border-radius: 20px; border: 1px solid rgba(27,79,156,0.12);
}
.about-mvv {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0;
}
.about-mvv .mvv-card {
  background: var(--white); border-radius: 10px; padding: 28px 22px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-top: 4px solid var(--primary);
}
.about-mvv h3 { font-size: 17px; color: var(--primary); margin-bottom: 14px; font-weight: 700; }
.about-mvv p { margin: 0; line-height: 1.75; font-size: 14px; color: var(--text-secondary); }
.about-mvv .mvv-values { font-weight: 700; color: var(--primary); font-size: 15px; letter-spacing: 0.05em; }
.about-slogan {
  text-align: center; font-size: 17px; font-weight: 600; color: var(--white);
  line-height: 1.85; margin: 40px 0 52px; padding: 32px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #164080 100%);
  border-radius: 10px; box-shadow: 0 4px 16px rgba(27,79,156,0.2);
}
.about-services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px;
}
.about-svc-col {
  background: var(--bg-light); border-radius: 10px; padding: 24px 22px;
  border: 1px solid transparent; transition: var(--transition);
}
.about-svc-col:hover { border-color: rgba(27,79,156,0.15); box-shadow: 0 4px 12px rgba(27,79,156,0.06); }
.about-svc-col h4 {
  color: var(--primary); margin-bottom: 14px; font-size: 16px; font-weight: 700;
  padding-bottom: 10px; border-bottom: 1px dashed rgba(27,79,156,0.2);
}
.about-svc-col ul { margin: 0; padding-left: 18px; line-height: 2; color: var(--text-body); font-size: 14px; }
.about-adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}
.about-adv-item {
  background: var(--white); border-radius: 10px; padding: 24px 20px;
  border: 1px solid var(--border); transition: var(--transition);
}
.about-adv-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27,79,156,0.08); }
.about-adv-item h4 { color: var(--primary); margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.about-adv-item p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--text-secondary); }

/* ===== Single Module Pages (dropdown sub-pages) ===== */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.page-main-content { min-width: 0; }
.page-sidebar {
  position: sticky;
  top: 96px;
}
.page-sidebar-nav {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(27,79,156,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,79,156,0.06);
}
.page-sidebar-link {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.page-sidebar-link:hover {
  background: rgba(27,79,156,0.04);
  color: var(--primary);
}
.page-sidebar-link.active {
  background: rgba(27,79,156,0.08);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.service-module-card[hidden],
.page-module[hidden] { display: none !important; }
.services-page-grid {
  display: flex; flex-direction: column; gap: 48px;
  max-width: 900px; margin: 0 auto;
}
.service-module-card {
  background: var(--white); border-radius: 12px; padding: 40px 44px;
  border: 1px solid rgba(27,79,156,0.08);
  box-shadow: 0 4px 24px rgba(27,79,156,0.08);
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.service-module-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 16px rgba(27,79,156,0.12);
}
.service-module-body { min-width: 0; }
.service-module-card h3 {
  font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 2px dashed rgba(27,79,156,0.15);
}
.service-module-card ul {
  margin: 0; padding-left: 24px; list-style: disc;
  font-size: 19px; line-height: 2.4; color: var(--text-body);
}
.service-module-card ul li { margin-bottom: 12px; }
.services-intro { padding-bottom: 48px; }
.services-detail-section { padding-top: 40px; padding-bottom: 80px; }
.module-filter-active .services-intro-desc { display: none; }
.module-filter-active .about-detail-card { box-shadow: none; border: none; padding: 0; background: transparent; }
.module-filter-active .page-module:not([hidden]) { max-width: none; margin: 0; }
.module-filter-active .services-page-grid { max-width: none; }
.module-filter-active .page-module:not([hidden]) .about-block { margin-bottom: 40px; }
.module-filter-active .page-module:not([hidden]) .about-block h2 { font-size: 32px; margin-bottom: 28px; }
.module-filter-active .page-module:not([hidden]) .about-block p { font-size: 17px; line-height: 2; margin-bottom: 20px; }
.module-filter-active .page-module:not([hidden]) .about-mvv-text { font-size: 22px; line-height: 2; }
.module-filter-active .page-module:not([hidden]) .about-mvv-values { font-size: 24px; }
.module-filter-active .page-module:not([hidden]) .about-slogan { font-size: 19px; padding: 40px 36px; margin: 48px 0; }

.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb-wrap { padding-top: 16px; }

/* ===== Services Page ===== */
.services-intro { padding-top: 40px; padding-bottom: 60px; }
.services-stats { justify-content: center; margin-top: 8px; }

.services-page-grid .service-card-lg {
  flex-direction: column; align-items: flex-start; padding: 28px 24px;
}
.services-page-grid .service-icon { margin-bottom: 4px; }
.service-points {
  margin: 12px 0 0; padding-left: 18px; list-style: disc;
  font-size: 12px; color: var(--text-secondary); line-height: 1.8;
}
.service-points li { margin-bottom: 2px; }

.process-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.process-step {
  flex: 1; min-width: 120px; max-width: 160px; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 12px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.process-step:hover { border-color: var(--primary); transform: translateY(-2px); }
.process-num {
  width: 40px; height: 40px; margin: 0 auto 12px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.process-step h4 { font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.process-arrow {
  display: flex; align-items: center; color: var(--primary);
  font-size: 24px; padding-top: 36px; opacity: 0.4;
}

.standards-tags {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.standard-tag {
  display: inline-block; padding: 10px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; font-size: 14px; font-weight: 500;
  color: var(--primary); transition: var(--transition);
}
.standard-tag:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

.industry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.industry-card {
  text-align: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 20px; transition: var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.industry-card i {
  font-size: 32px; color: var(--primary); margin-bottom: 16px; display: block;
}
.industry-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.industry-card p { font-size: 13px; color: var(--text-secondary); }

.cases-grid-3 { grid-template-columns: repeat(3, 1fr); }

.services-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0; color: var(--white);
}
.services-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.services-cta h3 { font-size: 24px; margin-bottom: 8px; }
.services-cta p { font-size: 15px; opacity: 0.9; }
.services-cta .btn-primary {
  flex-shrink: 0; background: var(--white); color: var(--primary);
  padding: 14px 32px; font-size: 15px; white-space: nowrap;
}
.services-cta .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* List pages */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-card img { width: 100%; height: 200px; object-fit: cover; }
.list-card-body { padding: 20px; }
.list-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.list-card-body p { font-size: 13px; color: var(--text-secondary); }

.article-list li {
  padding: 16px 0; border-bottom: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.article-list a { color: var(--text-dark); font-size: 15px; }
.article-list a:hover { color: var(--primary); }
.article-list .date { color: var(--text-light); font-size: 13px; flex-shrink: 0; margin-left: 16px; }

.content-detail { max-width: 800px; margin: 0 auto; }
.content-detail h1 { font-size: 28px; text-align: center; margin-bottom: 16px; }
.content-detail .meta { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 32px; }
.content-detail .content { line-height: 1.8; font-size: 15px; }
.content-detail .content img { max-width: 100%; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-secondary); font-size: 14px;
}
.pagination a:hover, .pagination a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== Mobile Bottom Bar ===== */
.mobile-bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--primary); box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px; color: var(--white) !important; font-size: 14px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.mobile-bottom-bar a:last-child { border-right: none; }
.mobile-bottom-bar i { font-size: 18px; }

/* Mobile nav extra (in drawer) */
.mobile-nav-extra { display: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .container { padding: 0 20px; }
  .services-grid, .cases-grid, .cases-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
  .process-step { max-width: none; min-width: calc(33.33% - 12px); }
  .news-grid, .why-grid, .list-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }
}

@media (max-width: 768px) {
  /* Header mobile */
  .site-header { height: 56px; }
  .header-container {
    grid-template-columns: 1fr auto auto;
    padding: 0 16px; height: 56px; gap: 12px;
    position: relative;
  }
  .logo-icon { width: 44px; height: 44px; }
  .logo-name { font-size: 12px; max-width: 160px; line-height: 1.25; white-space: normal; }
  .header-right { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }

  /* Mobile drawer */
  .nav-wrapper {
    display: none; position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 999;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 0 0 80px;
  }
  .nav-wrapper.open { display: block; }
  body.menu-open { overflow: hidden; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 0; }
  .nav-link {
    flex-direction: row; justify-content: flex-start; gap: 10px;
    padding: 14px 12px; border-bottom: 1px solid var(--border);
  }
  .nav-link.active { background: var(--bg-light); }
  .nav-link.active::after { display: none; }
  .nav-cn { font-size: 16px; }
  .nav-en { font-size: 12px; margin-top: 0; }
  .nav-has-dropdown .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-radius: 0;
    background: var(--bg-light); padding: 0; display: none;
  }
  .nav-has-dropdown.nav-open .nav-dropdown { display: block; pointer-events: auto; }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.nav-open:hover .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 12px 20px 12px 36px; font-size: 14px; }
  .home-mvv-grid { grid-template-columns: 1fr; }
  .mobile-nav-extra {
    display: block; padding: 20px 16px;
    border-top: 8px solid var(--bg-light);
  }
  .mobile-lang {
    display: flex; gap: 12px; margin-bottom: 16px; justify-content: center;
  }
  .mobile-lang a {
    padding: 8px 20px; border-radius: 20px; font-size: 14px;
    border: 1px solid var(--border); color: var(--text-secondary);
  }
  .mobile-lang a.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
  }
  .mobile-cta-btn { display: block; width: 100%; text-align: center; padding: 14px; }

  /* Hero */
  .hero { margin-top: 56px; min-height: 420px; }
  .hero-content { padding: 48px 0 64px; max-width: 100%; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 14px; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; text-align: center; padding: 12px 20px; }
  .hero-dots { bottom: 20px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 24px; }
  .section-title p { font-size: 13px; }

  /* About */
  .about-grid { gap: 28px; }
  .about-img img { height: 220px; }
  .about-text h3 { font-size: 22px; }
  .stats-row { justify-content: space-around; gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12px; }
  .about-stats-bar { margin-top: -40px; }
  .about-stats-list li { padding: 20px 12px; }
  .about-stats-list strong { font-size: 26px; }
  .about-detail-card { padding: 28px 20px; }
  .about-mvv, .about-adv-grid, .why-grid-6, .services-grid-4 { grid-template-columns: 1fr; }
  .about-services-grid { grid-template-columns: 1fr; }
  .about-page .about-block h2 { font-size: 20px; }
  .about-slogan { font-size: 15px; padding: 24px 18px; }
  .about-page-cta-inner { padding: 36px 24px; }
  .about-page-cta-inner h3 { font-size: 18px; }
  .page-with-sidebar { grid-template-columns: 1fr; gap: 20px; }
  .page-sidebar { position: static; }
  .page-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
  }
  .page-sidebar-link {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
    padding: 10px 12px;
    font-size: 13px;
    border-left: none;
    border-radius: 6px;
    text-align: center;
    background: var(--bg-light);
  }
  .page-sidebar-link.active {
    background: rgba(27,79,156,0.12);
    border-left: none;
  }
  .service-module-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
  .service-module-media img { height: 180px; }
  .service-module-card h3 { font-size: 22px; margin-bottom: 20px; }
  .service-module-card ul { font-size: 15px; line-height: 2; }

  /* Grids → single column */
  .services-grid,
  .cases-grid,
  .cases-grid-3,
  .news-grid,
  .why-grid,
  .list-grid,
  .industry-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-step { min-width: 100%; }
  .services-cta-inner { flex-direction: column; text-align: center; }
  .services-cta .btn-primary { width: 100%; text-align: center; }
  .service-card { padding: 20px 16px; }
  .case-card img { height: 180px; }
  .why-item { padding: 32px 16px; }
  .why-num { font-size: 48px; }

  /* Contact section (homepage) */
  .contact-section { padding: 48px 0; }
  .contact-grid { gap: 28px; }
  .contact-info h3 { font-size: 22px; }
  .contact-form { padding: 24px 20px; }

  /* Contact page */
  .page-banner { margin-top: 56px; padding: 40px 0; }
  .page-banner h1 { font-size: 24px; }
  .page-banner p { font-size: 13px; }
  .page-content { padding: 32px 0; }
  .page-banner + .container.page-content { padding-top: 40px; }
  .contact-main { padding: 32px 0 48px; gap: 28px; }
  .contact-form-box { padding: 24px 20px; }
  .contact-info-panel h2 { font-size: 22px; }
  .contact-map-section { height: 280px; }

  /* Inner pages */
  .article-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article-list .date { margin-left: 0; }
  .content-detail h1 { font-size: 22px; }
  .content-detail .content { font-size: 15px; }
  .pagination { flex-wrap: wrap; }
  .pagination a { padding: 10px 12px; font-size: 13px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-bottom: 0; }
  body { padding-bottom: 52px; }
  .mobile-bottom-bar { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-name { max-width: 130px; font-size: 11px; }
  .hero-content h1 { font-size: 22px; }
  .hero { min-height: 380px; }
  .industry-grid { grid-template-columns: 1fr; }
  .process-step { min-width: 100%; }
  .cases-grid-3 { grid-template-columns: 1fr; }
  .stat-item { width: 100%; }
  .creote-field label { font-size: 11px; }
  .field-wrap input, .field-wrap textarea { font-size: 16px; /* prevent iOS zoom */ }
  .form-group input, .form-group textarea { font-size: 16px; }
  .about-stats-list { flex-direction: column; }
  .about-stats-list li { border-right: none; border-bottom: 1px solid var(--border); }
  .about-stats-list li:last-child { border-bottom: none; }
}

