/* ============================================
   河南商丘代妈代怀劳务市场 - 主样式文件
   网站: http://ShangQiuDaiMa.cn
   配色方案:
   - 主色: #d4567a (玫瑰红)
   - 深色: #b84565
   - 辅色: #9c56b8 (紫色)
   - 强调色: #e891b0 (粉色)
   - 文字深色: #5a3d45
   - 文字浅色: #7a6569
   - 背景浅色: #f8f0f2
   - 背景更浅: #f5e6e8
   ============================================ */

:root {
  --primary: #d4567a;
  --primary-dark: #b84565;
  --secondary: #9c56b8;
  --accent: #e891b0;
  --text-dark: #5a3d45;
  --text-light: #7a6569;
  --bg-light: #f8f0f2;
  --bg-lighter: #f5e6e8;
  --white: #ffffff;
  --shadow: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 30px rgba(212,86,122,0.2);
  --transition: all 0.3s ease;
}

html, body {
  font-size: 100%;
  font-family: 'Open Sans', 'Microsoft YaHei', sans-serif;
  background: var(--white);
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

p, ul li, ol li {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Microsoft YaHei', sans-serif;
  margin: 0;
  color: var(--text-dark);
}

ul, label {
  margin: 0;
  padding: 0;
}

body a:hover {
  text-decoration: none;
}

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

/* ============================================
   导航栏样式
   ============================================ */
.banner {
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 50%, var(--bg-lighter) 100%);
  min-height: 650px;
}

.w3_agile_banner_top {
  border-bottom: 1px solid #e8c4c8;
  background: rgba(255,255,255,0.5);
}

.agile_phone_mail {
  text-align: right;
  padding: 8px 0;
}

.agile_phone_mail ul li {
  display: inline-block;
  padding: 8px 20px;
  border-left: 1px solid #e8c4c8;
  color: var(--text-dark);
}

.agile_phone_mail ul li:first-child {
  border-left: none;
}

.agile_phone_mail ul li a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

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

.agile_phone_mail ul li i {
  padding-right: 0.5em;
  color: var(--primary);
}

.agileits_w3layouts_banner_nav {
  padding: 1em;
  border-bottom: 1px solid #e8c4c8;
  background: rgba(255,255,255,0.8);
}

.navbar-default {
  background: none;
  border: none;
}

.navbar {
  border-radius: 0;
  margin-bottom: 0;
}

.navbar-brand {
  padding: 0;
  font-size: 1.2em;
  line-height: 45px;
  height: 45px;
  letter-spacing: 2px;
  color: var(--text-dark) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

.navbar-brand span {
  color: var(--primary);
  font-weight: bold;
}

.navbar-nav > li > a {
  text-transform: uppercase;
  padding: 5px 15px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
  transition: var(--transition);
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a.active {
  color: var(--primary) !important;
  background: transparent;
}

.navbar-default .navbar-nav > .active > a {
  color: var(--primary) !important;
  background: transparent;
  border-bottom: 2px solid var(--primary);
}

.navbar-toggle {
  background: var(--primary);
  border: none;
  border-radius: 0;
}

.navbar-toggle .icon-bar {
  background: var(--white);
}

/* ============================================
   Banner区域样式
   ============================================ */
.banner {
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 50%, var(--bg-lighter) 100%);
  min-height: 650px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,86,122,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(156,86,184,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.wthree_banner_info {
  width: 70%;
  margin: 8em auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.wthree_banner_info h2 {
  font-size: 2.8em;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3em;
  margin-bottom: 1.5em;
  letter-spacing: 1px;
}

.wthree_banner_info h2 span {
  color: var(--primary);
  position: relative;
}

.wthree_banner_info h2 span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.wthree_banner_info p {
  font-size: 1.15em;
  color: var(--text-light);
  line-height: 2em;
  margin-bottom: 2.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary-custom {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin: 0 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-custom {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin: 0 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-secondary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
  z-index: -1;
}

.btn-secondary-custom:hover::before {
  width: 100%;
}

.btn-secondary-custom:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   通用区块样式
   ============================================ */
.section {
  padding: 4em 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.2em;
  color: var(--text-dark);
  margin-bottom: 0.5em;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1em;
  margin-bottom: 3em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   服务卡片样式
   ============================================ */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5em 2em;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 2em;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,86,122,0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  margin: 0 auto 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-icon i {
  font-size: 2em;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h4 {
  font-size: 1.3em;
  margin-bottom: 0.8em;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8em;
  margin-bottom: 1em;
}

.service-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.service-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(3px);
}

/* ============================================
   特性框样式
   ============================================ */
.feature-box {
  padding: 2em;
  background: var(--bg-light);
  border-radius: 15px;
  margin-bottom: 2em;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s;
}

.feature-box:hover::before {
  transform: scaleY(1);
}

.feature-box:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  border-color: rgba(212,86,122,0.1);
}

.feature-box h4 {
  color: var(--primary);
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

.feature-box h4 i {
  margin-right: 10px;
}

.feature-box p {
  color: var(--text-light);
  line-height: 1.8em;
}

/* ============================================
   关于我们样式
   ============================================ */
.about-content {
  padding: 2em;
}

.about-content h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.4em;
}

.about-content h3 span {
  color: var(--primary);
  position: relative;
}

.about-content h3 span::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.about-content p {
  color: var(--text-light);
  line-height: 2em;
  margin-bottom: 1.2em;
  font-size: 1.05em;
}

.about-content .btn-primary-custom {
  margin-top: 1em;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212,86,122,0.1), rgba(156,86,184,0.1));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.about-image:hover::before {
  opacity: 1;
}

.about-image:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ============================================
   统计数据样式
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4em 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  padding: 1.5em;
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  font-size: 3em;
  color: var(--white);
  margin-bottom: 0.3em;
  font-weight: 700;
}

.stat-item p {
  font-size: 1.1em;
  opacity: 0.95;
}

/* ============================================
   内容区块样式
   ============================================ */
.content-block {
  background: var(--white);
  border-radius: 10px;
  padding: 2em;
  box-shadow: var(--shadow);
  margin-bottom: 2em;
}

.content-block h3 {
  color: var(--primary);
  margin-bottom: 1em;
  font-size: 1.5em;
}

.content-block h3 i {
  margin-right: 10px;
}

.content-block p {
  color: var(--text-light);
  line-height: 2em;
  margin-bottom: 1em;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  padding: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
  color: var(--text-light);
}

.content-block ul li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ============================================
   流程步骤样式
   ============================================ */
.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 2em 0;
}

.step-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  padding: 1.5em;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 auto 1em;
}

.step-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

.step-item p {
  color: var(--text-light);
  font-size: 0.9em;
}

/* ============================================
   FAQ样式
   ============================================ */
.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1em;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.5em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h4 {
  color: var(--text-dark);
  font-size: 1.1em;
  margin: 0;
}

.faq-question i {
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5em;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 1.5em 1.5em;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8em;
}

/* ============================================
   页脚样式
   ============================================ */
.footer {
  padding: 4em 0 1.5em;
  background: var(--text-dark);
  color: var(--white);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5em;
  font-size: 1.3em;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer p,
.footer a {
  color: #e8c4c8;
  line-height: 2em;
}

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8em;
}

.footer-links a {
  color: #e8c4c8;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  margin-top: 1.5em;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  color: var(--white);
  margin-right: 12px;
  transition: var(--transition);
  font-size: 1.1em;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212,86,122,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5em;
  margin-top: 3em;
  text-align: center;
  color: #e8c4c8;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 20px rgba(212,86,122,0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(212,86,122,0.5);
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.feature-box {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
  .wthree_banner_info {
    width: 85%;
    margin: 6em auto 0;
  }
  
  .wthree_banner_info h2 {
    font-size: 2.2em;
  }
  
  .section {
    padding: 3em 0;
  }
  
  .section-title {
    font-size: 1.8em;
  }
  
  .banner::before,
  .banner::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .wthree_banner_info {
    width: 95%;
    margin: 4em auto 0;
  }
  
  .wthree_banner_info h2 {
    font-size: 1.6em;
  }
  
  .wthree_banner_info p {
    font-size: 1em;
  }
  
  .banner-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .banner-buttons .btn-primary-custom,
  .banner-buttons .btn-secondary-custom {
    display: block;
    margin: 10px auto;
    max-width: 250px;
    width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 2.5em 0;
  }
  
  .section-title {
    font-size: 1.5em;
  }
  
  .section-subtitle {
    margin-bottom: 2em;
  }
  
  .agile_phone_mail {
    text-align: center;
  }
  
  .agile_phone_mail ul li {
    display: block;
    border-left: none;
    border-bottom: 1px solid #e8c4c8;
  }
  
  .agile_phone_mail ul li:last-child {
    border-bottom: none;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .step-item {
    margin-bottom: 1em;
  }
}

@media (max-width: 480px) {
  .wthree_banner_info h2 {
    font-size: 1.3em;
  }
  
  .section-title {
    font-size: 1.3em;
  }
  
  .service-card,
  .feature-box,
  .testimonial-card {
    padding: 1.5em;
  }
  
  .footer {
    padding: 2em 0 1em;
  }
}
