/* ============================================================
   FaceFactory 服务 / 定价页样式
   布局完全照搬原版官网（maymoremodel.com / facescene/main.css）
   仅将强调色由原版粉色 #ec4899 替换为品牌蓝，统一全站淡蓝配色
   ============================================================ */
:root {
  --fs-accent: #1677ff;
  --fs-accent-d: #0958d9;
  --fs-accent-soft: rgba(22, 119, 255, 0.15);
  --fs-green: #34C759;
  --fs-bg: #FFFFFF;
  --fs-text: #111111;
  --fs-text-2: #888888;
  --fs-border: #EAEAEA;
  --fs-surface: #F7F7F7;
  --fs-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* 复用页面主标题（覆盖 main.css 的居中样式，改为原版左对齐衬线） */
.page-title {
  font-family: var(--fs-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--fs-text);
  margin: 0 0 16px;
  text-align: left;
}
.page-subtitle {
  color: var(--fs-text-2);
  font-size: 18px;
  margin: 0 0 32px;
}

/* ============ 全宽 Hero 通栏 ============ */
.fs-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 420px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url(/uploads/services/hero-bg-default.jpg) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
}

/* 有全宽 Hero 的服务页：导航是 sticky 已占文档流，page-main 本就紧跟导航下方，
   故顶部内边距归零让 Hero 紧贴导航，不再出现「导航下方与广告位之间」的空白。
   底部 60px 与 .fs-hero 自带 margin-bottom:48px 保留（那是广告位与下方板块的间距）。 */
.page-main:has(.fs-hero) { padding-top: 0; padding-bottom: 60px; }
.fs-hero .hero-title {
  font-family: var(--fs-serif);
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
}
.fs-hero .hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  color: #fff;
  margin: 0;
}

/* ============ 通用区块标题 ============ */
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--fs-text);
  margin: 0 0 24px;
}
.section-block { margin-bottom: 56px; }

/* ============ 我们提供的服务（3 列） ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--fs-surface);
  padding: 32px;
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(22,119,255,0.12); }
.service-card h3 { font-size: 20px; margin: 0 0 12px; color: var(--fs-text); }
.service-card p { font-size: 14px; color: var(--fs-text-2); line-height: 1.7; margin: 0; }

/* ============ 我们解决的问题（2 列） ============ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--fs-border);
  padding: 24px;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.problem-card:hover { border-color: var(--fs-accent); box-shadow: 0 8px 24px var(--fs-accent-soft); }
.problem-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--fs-text); }
.problem-card p { font-size: 14px; color: var(--fs-text-2); line-height: 1.6; margin: 0; }

/* ============ 我们保障的权益 ============ */
.guarantee-section {
  background: var(--fs-surface);
  /* 左右不留内边距：让标题与 2×2 权益卡与「我们解决的问题」等区块左对齐（原 32px 会整体内缩） */
  padding: 32px 0;
  border-radius: 16px;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.guarantee-item { display: flex; align-items: flex-start; gap: 12px; }
.checkmark { color: var(--fs-green); font-size: 20px; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.guarantee-item h4 { font-size: 16px; margin: 0 0 4px; color: var(--fs-text); }
.guarantee-item p { font-size: 14px; color: var(--fs-text-2); line-height: 1.6; margin: 0; }

/* ============ 定价页：套餐说明 ============ */
.pricing-header { text-align: center; margin-bottom: 40px; }
.pricing-header .page-title { text-align: center; }
.pricing-header .page-subtitle { text-align: center; }

.package-description {
  background: var(--fs-surface);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--fs-text-2);
}
.package-description h3 { color: var(--fs-text); font-size: 16px; margin: 0 0 12px; }
.package-description ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 0; padding: 0;
}
.package-description li { position: relative; padding-left: 16px; line-height: 1.6; }
.package-description li:before {
  content: "\25cf";
  position: absolute; left: 0;
  color: var(--fs-accent);
}

/* 顶部限时优惠提示 */
.discount-notice {
  background: linear-gradient(135deg, #eef4ff, #e3edff);
  border: 1px solid #bcd4ff;
  color: var(--fs-accent-d);
  padding: 12px 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}
.discount-notice strong { font-size: 18px; margin: 0 4px; }

/* ============ 定价页：套餐卡片 ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}
.pricing-card:hover,
.pricing-card.selected {
  border-color: var(--fs-accent);
  box-shadow: 0 8px 32px var(--fs-accent-soft);
  transform: translateY(-4px);
}
.pricing-card.selected::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fs-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.promo-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(90deg, #ff4d4f, #ff7875);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
  white-space: nowrap;
}
.pricing-tier { font-size: 14px; color: var(--fs-text-2); margin-bottom: 8px; }
.pricing-title { font-size: 24px; font-weight: 600; margin: 0 0 16px; color: var(--fs-text); }
.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.current-price { font-size: 42px; font-weight: 700; color: var(--fs-accent); line-height: 1.2; }
.original-price { font-size: 18px; color: var(--fs-text-2); text-decoration: line-through; opacity: 0.7; }
.price-unit { font-size: 16px; color: var(--fs-text-2); align-self: flex-end; margin-bottom: 4px; }
.pricing-features { list-style: none; margin: 0 0 28px; padding: 0; }
.pricing-features li {
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fs-border);
  color: var(--fs-text);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-btn {
  width: 100%;
  padding: 14px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.pricing-btn:hover { opacity: 0.9; text-decoration: none; }

/* ============ 响应式 ============ */
/* ============ 商务合作 ============ */
.cooperation-section { margin-bottom: 56px; }
.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.cooperation-last-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: calc((100% - 48px) / 3 * 2 + 24px);
  margin: 0 auto;
}
.cooperation-item {
  background: var(--fs-surface);
  padding: 28px;
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: default;
}
.cooperation-item:hover {
  background: var(--fs-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(22,119,255,0.25);
}
.cooperation-item:hover h3,
.cooperation-item:hover p { color: #fff; }
.cooperation-item h3 { font-size: 18px; margin: 0 0 12px; color: var(--fs-text); transition: color 0.25s; }
.cooperation-item p { font-size: 14px; color: var(--fs-text-2); line-height: 1.7; margin: 0; transition: color 0.25s; }

@media (max-width: 1024px) {
  .services-grid, .problems-grid, .guarantee-grid, .cooperation-grid { grid-template-columns: repeat(2, 1fr); }
  .cooperation-last-row { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fs-hero { height: 300px; }
  .fs-hero .hero-title { font-size: 34px; }
  .services-grid, .problems-grid, .guarantee-grid, .pricing-grid, .cooperation-grid, .cooperation-last-row { grid-template-columns: 1fr; }
  .package-description ul { grid-template-columns: 1fr; }
  .current-price { font-size: 36px; }
}
