/* ==========================================================
   云拾导航 · 服务详情页 (service.php)
   ========================================================== */

/* 面包屑 */
.svc-breadcrumb {
  font-size: 12.5px;
  color: #8a94a6;
  padding: 12px 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.svc-breadcrumb a { color: #4f6bff; text-decoration: none; }
.svc-breadcrumb a:hover { text-decoration: underline; }
.svc-breadcrumb span { color: #c1c8d5; }
.svc-breadcrumb span:last-child { color: #1c2333; }

.svc-wrap { max-width: 1180px; margin: 0 auto; padding-bottom: 36px; }

/* Hero */
.svc-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  margin-bottom: 22px;
}
.svc-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
}
.svc-hero-overlay {
  position: relative;
  padding: 48px 40px;
}
.svc-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.svc-hero-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.svc-hero-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
}
.svc-hero-tag-ok { background: rgba(34,197,94,.35); }
.svc-hero-tag-no { background: rgba(239,68,68,.35); }
.svc-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: .5px;
}
.svc-hero-desc {
  font-size: 14.5px;
  margin: 0;
  opacity: .9;
  line-height: 1.8;
  max-width: 720px;
}

/* 服务保障条 */
.svc-guarantee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -8px 0 22px;
}
.svc-g-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(16,24,40,.04);
  transition: transform .18s, box-shadow .18s;
}
.svc-g-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16,24,40,.08);
}
.svc-g-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.svc-g-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1c2333;
}
.svc-g-item i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: #8a94a6;
  margin-top: 2px;
}

/* 帮助卡片 */
.svc-help-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #f8faff, #f5f3ff);
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 20px 22px;
}
.svc-help-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1c2333;
  margin-bottom: 6px;
}
.svc-help-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #6b7588;
  line-height: 1.7;
}
.svc-help-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f6bff, #7a5cff);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.svc-help-btn span { font-size: 16px; }
.svc-help-btn:hover {
  box-shadow: 0 6px 18px rgba(79,107,255,.35);
  transform: translateY(-1px);
}

/* 两栏布局 */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
.svc-main { display: flex; flex-direction: column; gap: 18px; }

.svc-card {
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(16,24,40,.04);
}
.svc-card-head {
  padding: 16px 22px;
  border-bottom: 1px solid #eef1f7;
}
.svc-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1c2333; }
.svc-card-body { padding: 22px; }
.svc-card-warn { border-color: #fde68a; background: #fffbeb; }

/* 详情内容（管理员填的 HTML） */
.svc-detail-content { font-size: 14px; line-height: 1.9; color: #1c2333; }
.svc-detail-content p { margin: 0 0 12px; }
.svc-detail-content h4 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: #1c2333; }
.svc-detail-content ul { padding-left: 20px; margin: 0 0 12px; }
.svc-detail-content li { margin: 4px 0; }
.svc-detail-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.svc-detail-content code {
  background: #f1f3f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #4f6bff;
}

.svc-detail-empty p { margin: 0 0 6px; color: #6b7588; }
.svc-detail-empty .svc-detail-sub { font-size: 13px; margin-top: 10px; }
.svc-detail-empty ul { padding-left: 18px; margin: 6px 0; }
.svc-detail-empty li { margin: 3px 0; font-size: 13px; color: #5a6579; }
.svc-detail-empty code { background: #f1f3f8; padding: 1px 5px; border-radius: 3px; font-size: 12px; color: #4f6bff; }

/* 规格表 */
.svc-spec-table {
  display: grid;
  gap: 2px;
}
.svc-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.svc-spec-row:nth-child(odd) { background: #f8faff; }
.svc-spec-row .k { color: #8a94a6; }
.svc-spec-row .v { color: #1c2333; font-weight: 500; }
.svc-spec-row code {
  background: #eef1f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #4f6bff;
}

/* FAQ */
.svc-faq-list { display: flex; flex-direction: column; gap: 10px; }
.svc-faq-item {
  border: 1px solid #eef1f7;
  border-radius: 10px;
  padding: 4px 0;
  overflow: hidden;
  transition: all .15s;
}
.svc-faq-item[open] { border-color: #c7d2fe; background: #f8faff; }
.svc-faq-item summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1c2333;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-q { color: #4f6bff; font-weight: 800; margin-right: 4px; }
.svc-faq-a {
  padding: 4px 16px 14px 34px;
  font-size: 13.5px;
  color: #5a6579;
  line-height: 1.8;
}
.svc-faq-a span { color: #16a34a; font-weight: 800; margin-right: 4px; }

/* 警告块 */
.svc-warn-text { margin: 0 0 8px; font-size: 14px; color: #92400e; }
.svc-warn-text b { color: #b45309; }
.svc-warn-sub { margin: 0; font-size: 12.5px; color: #a16207; }

/* ---- 右侧侧栏 ---- */
.svc-aside { position: sticky; top: 76px; }
.svc-buy-card {
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16,24,40,.06);
  padding: 22px;
}
.svc-buy-price-head { margin-bottom: 14px; }
.svc-buy-from { font-size: 12px; color: #8a94a6; margin-right: 6px; }
.svc-buy-price { font-size: 30px; font-weight: 800; color: #e11d48; line-height: 1; }
.svc-buy-period { font-size: 12px; color: #8a94a6; margin-left: 6px; }
.svc-buy-price-desc {
  font-size: 12.5px;
  color: #6b7588;
  margin: 10px 0 16px;
  padding: 10px 12px;
  background: #f8faff;
  border-radius: 8px;
  border-left: 3px solid #4f6bff;
}

.svc-buy-label {
  font-size: 12px;
  font-weight: 600;
  color: #8a94a6;
  margin-bottom: 8px;
  letter-spacing: .4px;
}
.svc-buy-periods { display: grid; gap: 8px; }
.svc-buy-period-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #eef1f7;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
}
.svc-buy-period-item input { display: none; }
.svc-buy-period-item:hover { border-color: #c7d2fe; background: #f8faff; }
.svc-buy-period-item.active {
  border-color: #4f6bff;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: 0 2px 8px rgba(79,107,255,.15);
}
.svc-buy-period-item.active .pbpi-l { color: #4f6bff; font-weight: 700; }
.pbpi-l { font-weight: 500; color: #1c2333; }
.pbpi-p { font-weight: 700; color: #e11d48; }

.svc-buy-submit {
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
  transition: all .15s;
}
.svc-buy-submit:hover { box-shadow: 0 6px 20px rgba(249,115,22,.4); transform: translateY(-1px); }
.svc-buy-submit:disabled {
  background: #d1d5db;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.svc-buy-disabled {
  padding: 18px;
  text-align: center;
  background: #f9fafb;
  border-radius: 10px;
  color: #6b7588;
  font-size: 13.5px;
}
.svc-buy-disabled b { color: #e11d48; }

.svc-buy-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8a94a6;
  text-align: center;
}
.svc-buy-note a { color: #4f6bff; text-decoration: none; font-weight: 500; }
.svc-buy-note a:hover { text-decoration: underline; }
.svc-buy-note-warn { color: #b45309; }

.svc-buy-payments {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #eef1f7;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.svc-buy-payments-label { width: 100%; color: #8a94a6; margin-bottom: 6px; font-weight: 600; font-size: 11px; letter-spacing: .3px; }
.svc-pay-tag {
  padding: 3px 9px;
  background: #f5f7fb;
  border-radius: 20px;
  color: #5a6579;
}

/* 响应式 */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-hero { min-height: 180px; }
  .svc-hero-overlay { padding: 32px 24px; }
  .svc-hero-title { font-size: 24px; }
  .svc-guarantee { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
