/* 地陪服务平台 - 首页样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100% !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  color: #2c3e50 !important;
  background: #ffffff !important;
  line-height: 1.6 !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

/* 主内容区域 - 为fixed header留出空间 */
header + section,
header + div,
header + .inner_main {
  margin-top: 70px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: #5a6c7d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
}

.nav-item > a:hover,
.nav-item.current > a {
  color: #dd1d4a;
}

.nav-item .sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

.nav-item:hover .sub-nav {
  display: block;
}

.sub-nav a {
  display: block;
  padding: 8px 20px;
  color: #5a6c7d;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.sub-nav a:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  width: 180px;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.search-btn {
  padding: 8px 16px;
  background: #dd1d4a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.search-btn:hover {
  background: #c11840;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(221, 29, 74, 0.4);
}

/* 主横幅 */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #dd1d4a 0%, #ff6b9d 100%);
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-left {
  flex: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  position: relative;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.hero-cta:hover {
  background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.hero-right {
  flex: 0 0 400px;
  position: relative;
}

.hero-image {
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 地陪展示区域 */
.dipei-showcase {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #dd1d4a;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: #5a6c7d;
}

.dipei-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.dipei-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
}

.dipei-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dipei-avatar {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.dipei-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dipei-card:hover .dipei-avatar img {
  transform: scale(1.05);
}

.dipei-info {
  padding: 16px 18px 18px;
}

.dipei-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.dipei-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dipei-age-gender {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.dipei-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.dipei-orders {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.dipei-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.dipei-status.offline {
  background: rgba(148, 163, 184, 0.95);
  box-shadow: 0 2px 12px rgba(148, 163, 184, 0.3);
}

.dipei-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(221, 29, 74, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(221, 29, 74, 0.4);
}

.dipei-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dipei-tags .tag {
  padding: 4px 10px;
  background: #f5f5f5;
  color: #666;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
}

.dipei-location {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 400;
}

.dipei-rating {
  font-size: 13px;
  color: #fbbf24;
  margin-bottom: 10px;
  font-weight: 500;
}

.dipei-rating span {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

.dipei-price {
  font-size: 20px;
  font-weight: 600;
  color: #ff4757;
  letter-spacing: 0.5px;
}

.dipei-price span {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

.btn-view-more {
  padding: 14px 32px;
  background: #dd1d4a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(221, 29, 74, 0.3);
}

.btn-view-more:hover {
  background: #c11840;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221, 29, 74, 0.4);
}

/* 服务优势 */
.advantages {
  padding: 80px 0;
  background: #f8f9fa;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 32px 24px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #dd1d4a;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.6;
}

/* 咨询表单 */
.contact {
  padding: 80px 0;
  background: #ffffff;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 48px 40px;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
}

.contact h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  text-align: center;
}

.contact-subtitle {
  text-align: center;
  color: #5a6c7d;
  margin-bottom: 32px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: #ffffff;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.form-note {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #7a8a9a;
}

/* 新闻资讯 */
.news-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #2c3e50;
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dd1d4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-title a:hover {
  color: #dd1d4a;
}

.news-desc {
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7a8a9a;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.news-author,
.news-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Footer - Sticky */
footer {
  margin-top: auto !important;
}

/* 核心Footer样式 */
.footer-main {
  width: 100%;
  background: #f9f9f9;
  padding: 30px 0;
  border-top: 4px solid #dd1d4a !important;
  font-size: 14px;
  color: #333;
}

/* 容器适配 - 居中+响应式 */
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 品牌主张栏样式 */
.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* 导航栏样式 */
.footer-nav {
  margin-bottom: 15px;
  line-height: 1.8;
}

.footer-nav a {
  color: #666;
  text-decoration: none;
  margin: 0 8px;
}

.footer-nav a:hover {
  color: #dd1d4a;
  text-decoration: underline;
}

/* 合规栏样式 */
.footer-compliance {
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.footer-compliance p {
  margin: 5px 0;
}

.footer-compliance a {
  color: #999;
  text-decoration: none;
  margin: 0 5px;
}

.footer-compliance a:hover {
  color: #dd1d4a;
}

.footer-compliance span {
  margin: 0 3px;
  color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-brand {
    font-size: 14px;
  }
  
  .footer-nav {
    font-size: 13px;
  }
  
  .footer-nav a {
    display: inline-block;
    margin: 5px 6px;
  }
}

@media (max-width: 1024px) {
  .dipei-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-right {
    flex: 0 0 auto;
  }
  
  .hero-image {
    width: 100%;
    height: 400px;
  }
  
  .dipei-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .reviews-section {
    padding: 60px 0;
  }
  
  .review-card {
    padding: 24px;
  }
  
  .nav-main,
  .nav-search {
    display: none;
  }
  
  .contact-wrapper {
    padding: 32px 24px;
  }
}

/* 用户评价样式 */
.reviews-section {
  padding: 80px 0;
  background: #f9fafb;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.review-card-1 {
  border-left: 4px solid #dd1d4a;
}

.review-card-2 {
  border-left: 4px solid #48bb78;
}

.review-card-3 {
  border-left: 4px solid #667eea;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-avatar-1 {
  background: linear-gradient(135deg, #dd1d4a 0%, #ff6b9d 100%);
}

.review-avatar-2 {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.review-avatar-3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.review-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

.review-location {
  font-size: 13px;
  color: #718096;
  margin-top: 2px;
}

.review-rating {
  color: #f6ad55;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #2c3e50;
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端导航菜单 */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  max-height: 500px;
}

.mobile-nav-item {
  padding: 16px 24px;
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  display: block;
}

.mobile-nav-item:hover {
  background: #f8f9fa;
  color: #dd1d4a;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .dipei-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .review-card {
    padding: 20px !important;
  }
  
  .reviews-section {
    padding: 40px 0 !important;
  }
}
