/* ==========================================
   企业网站全局样式
   主题颜色: #008a3d
   ========================================== */

:root {
  --primary-color: #008a3d;
  --primary-dark: #006b2f;
  --primary-light: #00a84d;
  --secondary-color: #f0f0f0;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
}

/* ==========================================
   基础样式
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

/* ==========================================
   页头样式
   ========================================== */

header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff !important;
  position: relative;
  min-height: 67px !important;
  display: flex !important;
  align-items: center !important;
}

.navbar .container-fluid {
  display: flex !important;
  align-items: center !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  gap: 0 !important;
  width: 75% !important;
  height: 67px !important;
}

.navbar .navbar-brand {
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  color: var(--primary-color) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.navbar .navbar-toggler {
  margin-left: auto !important;
  margin-right: 20px !important;
}

.navbar .navbar-collapse {
  position: relative;
  flex: 1 !important;
  margin-left: 20px !important;
}

header .navbar-brand img {
  margin-right: 10px;
}

/* Logo 样式 */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* 响应式 Logo 样式 */
@media (max-width: 768px) {
  .navbar-logo {
    height: 35px;
  }
}

header .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 15px;
  transition: color 0.3s ease;
  padding: 0.5rem 0 !important;
}

header .nav-link:hover {
  color: var(--primary-color) !important;
}

header .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color);
}

/* 导航菜单分隔符 */
header .nav-divider {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 5px;
}

header .divider-line {
  color: #d0d0d0;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

/* 导航菜单容器 */
header .navbar-menu {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 语言切换按钮保持靠右 */
header .lang-btn-item {
  position: absolute;
  right: 20px;
  margin-left: 0;
}

/* 语言切换按钮 */
#lang-toggle {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

#lang-toggle:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* ==========================================
   主要内容区域
   ========================================== */

main {
  min-height: calc(100vh - 200px);
}

/* ==========================================
   按钮样式
   ========================================== */

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 138, 61, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* ==========================================
   卡片样式
   ========================================== */

.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 138, 61, 0.15);
}

.card-header {
  background-color: var(--primary-color) !important;
  color: white;
  border: none;
  font-weight: 600;
}

/* ==========================================
   页脚样式
   ========================================== */

footer {
  background-color: #1a1a1a !important;
  color: #ffffff;
  margin-top: 60px;
  border-top: 0px solid var(--primary-color);
}

footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 15px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer .text-white-50 {
  color: #ffffff !important;
}

footer p {
  color: #ffffff;
}

footer hr {
  border-color: #333333;
  margin: 30px 0;
}

footer p[data-i18n="footer.description"] {
  white-space: normal;
  word-break: break-word;
}

/* 微信公众号二维码样式 */
.wechat-qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wechat-qrcode {
  width: 100px;
  height: 100px;
  border: 1px solid #ffffff;
  border-radius: 1px;
  padding: 6px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wechat-qrcode:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 138, 61, 0.3);
  border-color: var(--primary-color);
}

.wechat-desc {
  font-size: 0.85rem;
  color: #ffffff;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .wechat-qrcode {
    width: 100px;
    height: 100px;
  }

  .wechat-desc {
    font-size: 0.8rem;
  }
}

/* ==========================================
   轮播图样式
   ========================================== */

.carousel-item {
  height: 500px;
  background-color: var(--secondary-color);
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 8px;
}

.carousel-caption h5 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.carousel-caption p {
  font-size: 1.1rem;
  color: #e0e0e0;
}

/* ==========================================
   特色功能区域
   ========================================== */

.feature-box {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==========================================
   表单样式
   ========================================== */

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 138, 61, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 768px) {
  /* 移动端 Header 样式 */
  .navbar .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .navbar .navbar-brand {
    margin-right: 0 !important;
  }

  .navbar .navbar-toggler {
    margin-right: 0 !important;
  }

  .navbar .navbar-collapse {
    margin-left: 0 !important;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding: 15px 0;
  }

  header .navbar-menu {
    width: 100% !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  /* 移动端隐藏竖线分隔符 */
  header .nav-divider {
    display: none !important;
  }

  header .nav-link {
    margin: 10px 15px !important;
    padding: 8px 0 !important;
    border-bottom: none !important;
    display: block;
  }

  header .nav-link.active {
    border-bottom: none !important;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px !important;
  }

  /* 移动端语言按钮 */
  header .lang-btn-item {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e0e0e0;
    width: 100% !important;
  }

  header .lang-btn-item button {
    width: auto;
  }

  .carousel-item {
    height: 300px;
  }

  .carousel-caption h5 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  /* 移动端招聘职位区域增加顶部间距 */
  #positions {
    margin-top: 60px !important;
  }
}

/* ==========================================
   动画和过渡
   ========================================== */

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   工具类
   ========================================== */

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: rgba(0, 138, 61, 0.1);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

/* ==========================================
   图片卡片悬停效果
   ========================================== */

.col-md-6.col-lg-3 img {
  transition: all 0.3s ease;
  cursor: pointer;
}

.col-md-6.col-lg-3 img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 138, 61, 0.25);
}

/* ==========================================
   品质标题和副标题样式
   ========================================== */

.quality-title {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.5px;
}

.quality-title span {
  color: var(--primary-color);
  font-weight: 600;
}

.quality-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 70px;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* ==========================================
   产品卡片样式
   ========================================== */

.product-card .card-title {
  color: #585858;
  font-weight: 500;
  font-size: 1.2rem;
}

/* ==========================================
   薪资相关样式 (方案4: 综合放大)
   ========================================== */

/* 薪资徽章 */
.salary-badge {
  background-color: #008a3d !important;
  color: white !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.5em 0.9em !important;
  border-radius: 0.25rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.salary-badge:hover {
  background-color: #006b2f !important;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 138, 61, 0.3);
}

/* 薪资标题 */
.salary-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #008a3d;
  margin-bottom: 15px;
}

/* 薪资描述 */
.salary-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .salary-badge {
    font-size: 0.9rem !important;
    padding: 0.4em 0.7em !important;
  }

  .salary-title {
    font-size: 1.3rem;
  }

  .salary-description {
    font-size: 0.95rem;
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 43px;
  height: 43px;
  background: linear-gradient(135deg, #008a3d 0%, #00a84d 100%);
  color: white;
  border: none;
  border-radius: 1%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 138, 61, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

#back-to-top:hover {
  background: linear-gradient(135deg, #006b2f 0%, #008a3d 100%);
  box-shadow: 0 6px 16px rgba(0, 138, 61, 0.4);
  transform: translateY(-3px);
}

#back-to-top:active {
  transform: translateY(-1px);
}

#back-to-top.show {
  display: flex;
}

/* Back to Top 响应式设计 */
@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

