/* =============================================
   MOSINTER GROUP 企业文化页面 - 全局样式
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:   #1a5c35;
  --green-main:   #2d7a4f;
  --green-light:  #4caf7d;
  --green-pale:   #e8f5ee;
  --green-border: #c8e6d4;
  --text-dark:    #1a1a1a;
  --text-mid:     #444444;
  --text-light:   #777777;
  --bg-white:     #ffffff;
  --bg-light:     #f7faf8;
  --border-color: #e0e0e0;
  --font-main:    'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   顶部导航
   ============================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Logo 图片占位（无图时显示绿色叶子 SVG 占位） */
.logo-img[src="images/logo.png"]:not([src=""]) {
  background: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  color: var(--text-mid);
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}

.nav a:hover,
.nav a.nav-active {
  color: var(--green-main);
}

.nav a.nav-active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-main);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   面包屑
   ============================================= */

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-bar a:hover { color: var(--green-main); }

.breadcrumb-icon { font-size: 16px; }

.sep { color: #bbb; }

.current { color: var(--text-mid); }

/* =============================================
   Hero 区块
   ============================================= */

.hero {
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 50%, #f5faf7 100%);
  padding: 40px 0 0;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hero-text {
  flex: 1;
  padding-bottom: 48px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--green-main);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
}

.hero-image {
  flex: 1;
  max-width: 520px;
  align-self: flex-end;
}

.hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  /* 占位背景 */
  background: linear-gradient(135deg, #d4edda, #a8d5b5);
  min-height: 280px;
}

/* =============================================
   通用 Section 样式
   ============================================= */

.section {
  padding: 64px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 48px;
  text-align: center;
}

.title-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--green-main);
  opacity: 0.6;
}

/* =============================================
   我们的理念
   ============================================= */

.concept-section {
  background: var(--bg-white);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.concept-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}

.concept-card:hover {
  box-shadow: 0 6px 24px rgba(45,122,79,0.12);
  transform: translateY(-4px);
}

.concept-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
}

.concept-icon svg {
  width: 100%;
  height: 100%;
}

.concept-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.concept-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   核心优势
   ============================================= */

.advantage-section {
  background: var(--bg-light);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.advantage-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}

.advantage-card:hover {
  box-shadow: 0 6px 24px rgba(45,122,79,0.12);
  transform: translateY(-4px);
}

.adv-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.adv-icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   我们相信
   ============================================= */

.belief-section {
  background: var(--bg-white);
}

.belief-card {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 160px;
  background-image: url('/assets/imgs/culture/middle-banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.belief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 0;
}

.belief-card > * {
  position: relative;
  z-index: 1;
}

.belief-text {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: transparent;
}

.belief-text p {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.9;
  font-weight: 400;
}

.quote-mark {
  font-size: 64px;
  color: var(--green-main);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.quote-mark.open {
  margin-bottom: 8px;
  display: block;
}

.quote-mark.close {
  display: block;
  text-align: right;
  margin-top: 8px;
}

.belief-image {
  width: 300px;
  flex-shrink: 0;
}

.belief-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #a8d5b5, #4caf7d);
  min-height: 200px;
}

/* =============================================
   企业风采
   ============================================= */

.showcase-section {
  background: var(--bg-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.showcase-item {
  text-align: center;
}

.showcase-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  background: linear-gradient(135deg, #c8e6d4, #a8d5b5);
  margin-bottom: 10px;
}

.showcase-item p {
  font-size: 13px;
  color: var(--text-mid);
}

/* 社会责任 */
.csr-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px 40px;
}

.csr-text {
  flex: 1;
}

.csr-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.csr-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
}

.csr-stats {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-icon {
  width: 36px;
  height: 36px;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-main);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* =============================================
   CTA 区块
   ============================================= */

.cta-section {
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 100%);
  padding: 64px 0 0;
  overflow: hidden;
  position: relative;
  background-image: inherit;
}

.cta-section[style*="background-image"] {
  background: transparent;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.cta-text {
  flex: 1;
  padding-bottom: 64px;
}

.cta-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cta-text p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--green-main);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: var(--green-dark);
  transform: translateX(2px);
}

.cta-image {
  flex: 1;
  max-width: 480px;
  align-self: flex-end;
}

.cta-image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: transparent;
}

/* =============================================
   页脚
   ============================================= */

.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
}

.footer-inner {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 0 0 220px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(10);
}

.footer-logo-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.footer-logo-sub {
  display: block;
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.footer-brand-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s;
}

.social-icon:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.footer-links {
  flex: 1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 80px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-col a,
.footer-col p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: rgba(255,255,255,0.95);
}

.footer-contact p {
  margin-bottom: 4px;
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.footer-qr img {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 4px;
  object-fit: contain;
}

.footer-qr span {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.85);
}

/* =============================================
   图片占位样式（无图时显示渐变色块）
   ============================================= */

img[src^="images/"] {
  background: linear-gradient(135deg, #d4edda 0%, #a8d5b5 100%);
}

/* =============================================
   动画
   ============================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

/* =============================================
   响应式
   ============================================= */

@media (max-width: 1024px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .csr-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 12px;
    z-index: 999;
  }
  .hamburger { display: flex; }

  .hero-content { flex-direction: column; gap: 24px; }
  .hero-image { max-width: 100%; width: 100%; }
  .hero-title { font-size: 28px; }

  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }

  .csr-block { flex-direction: column; gap: 24px; }
  .csr-stats { flex-wrap: wrap; justify-content: center; }

  .belief-card { flex-direction: column; }
  .belief-image { width: 100%; height: 200px; }

  .cta-inner { flex-direction: column; gap: 24px; }
  .cta-image { max-width: 100%; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 16px; }
  .footer-col { min-width: 100px; }

  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .concept-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; }
  .hero-title { font-size: 24px; }
}
