/* 对齐 client/src/pages/ServiceDetail.tsx 布局与层次（无 Tailwind 依赖） */
.sd-page { min-height: 100vh; background: #fff; color: #111827; }
.sd-hero {
  position: relative;
  padding: 6rem 0 3rem;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(219, 234, 254, 0.5), #fff);
}
.sd-hero__breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: #6b7280; margin-bottom: 3rem;
}
.sd-hero__breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  flex-direction: row !important; /* 强制横排：避免被全局样式改成 column 导致“首页”竖排 */
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap !important; /* 防止“首页”等短文本被挤成竖排（图标+文字分行） */
  writing-mode: horizontal-tb;
}
.sd-hero__breadcrumb a:hover { color: var(--primary, oklch(0.45 0.15 260)); }
.sd-hero__sep { color: #d1d5db; flex-shrink: 0; }
.sd-hero__crumb-hi { color: #111827; font-weight: 500; }
.sd-hero__grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .sd-hero__grid { grid-template-columns: 1fr 1fr; } }
.sd-hero__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sd-hero__iconbox {
  width: 4rem; height: 4rem; border-radius: 1rem; background: #fff; border: 1px solid #eff6ff;
  display: flex; align-items: center; justify-content: center; color: var(--primary, #2563eb);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.sd-hero__iconbox svg { width: 2rem; height: 2rem; }
.sd-hero__badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.375rem 1rem; border-radius: 9999px; background: #dbeafe; color: #2563eb;
}
.sd-hero h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 800; color: #111827; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .sd-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .sd-hero h1 { font-size: 3.75rem; } }
.sd-hero__lead { font-size: 1.25rem; line-height: 1.6; color: #6b7280; margin-bottom: 2.5rem; max-width: 36rem; }
.sd-hero__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; font-weight: 500; border: none; border-radius: 0.5rem;
  background: #2563eb; color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}
.sd-hero__cta:hover { background: #1d4ed8; }
.sd-hero__cta svg { width: 1.25rem; height: 1.25rem; }
.sd-hero__media { display: none; }
@media (min-width: 1024px) { .sd-hero__media { display: block; position: relative; } }
.sd-hero__media-inner {
  position: relative; border-radius: 1rem; overflow: hidden; border: 1px solid #f3f4f6; background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.15); aspect-ratio: 4/3; background-image: linear-gradient(to bottom right, #f9fafb, #eff6ff);
  display: flex; align-items: center; justify-content: center;
}
.sd-hero__media-inner img, .sd-hero__media-inner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sd-hero__media-inner img { background: #fff; padding: 1rem; }
.sd-hero__media-inner video { background: rgba(0,0,0,0.05); }

.sd-sec { padding: 3rem 0; }
.sd-sec--dark { background: #111827; color: #fff; position: relative; overflow: hidden; }
.sd-sec--dark::before, .sd-sec--dark::after {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(100px);
  pointer-events: none; opacity: 0.5;
}
.sd-sec--dark::before { top: 0; right: 0; background: rgba(37, 99, 235, 0.1); transform: translate(33%, -50%); }
.sd-sec--dark::after { bottom: 0; left: 0; background: rgba(147, 51, 234, 0.1); transform: translate(-33%, 50%); }
.sd-sec--muted { background: #f9fafb; }
.sd-sec h2 { font-size: 1.875rem; font-weight: 700; color: #111827; }
.sd-sec--dark h2, .sd-sec--dark h3 { color: #fff; }
.sd-sec--dark p, .sd-sec--dark .sd-sec__sub, .sd-sec--dark .sd-sec__head p, .sd-sec--dark .sd-sec__head p.sd-sec__sub { color: #9ca3af; }
.sd-sec__head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.sd-sec__head h2 { margin-bottom: 1rem; }
.sd-sec__sub { font-size: 1.125rem; color: #6b7280; }

.sd-pain { display: grid; gap: 1.5rem; position: relative; z-index: 1; }
@media (min-width: 768px) { .sd-pain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sd-pain { grid-template-columns: repeat(4, 1fr); } }
.sd-pain__card {
  background: rgba(31, 41, 55, 0.5); backdrop-filter: blur(4px);
  border: 1px solid #374151; border-radius: 1rem; padding: 2rem; transition: border-color 0.2s;
}
.sd-pain__card:hover { border-color: rgba(239, 68, 68, 0.5); }
.sd-pain__icon {
  width: 3rem; height: 3rem; border-radius: 9999px; background: rgba(239, 68, 68, 0.1);
  color: #ef4444; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: background 0.2s, color 0.2s;
}
.sd-pain__card:hover .sd-pain__icon { background: #ef4444; color: #fff; }
.sd-pain__icon svg { width: 1.5rem; height: 1.5rem; }
.sd-pain__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.sd-pain__desc { font-size: 0.875rem; line-height: 1.6; color: #9ca3af; }

.sd-details { display: grid; gap: 2rem; }
.sd-details--2 { max-width: 64rem; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sd-details--2 { grid-template-columns: repeat(2, 1fr); } }
.sd-details--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .sd-details--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sd-details--3 { grid-template-columns: repeat(3, 1fr); } }
.sd-dcard {
  background: #f9fafb; border: 1px solid transparent; border-radius: 1rem; padding: 2rem; transition: all 0.3s;
}
.sd-dcard:hover { background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); border-color: #f3f4f6; transform: translateY(-0.25rem); }
.sd-dcard__icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #2563eb; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: 0.2s;
}
.sd-dcard:hover .sd-dcard__icon { background: #2563eb; color: #fff; }
.sd-dcard__icon svg { width: 1.5rem; height: 1.5rem; }
.sd-dcard h3 { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 0.75rem; }
.sd-dcard p { font-size: 0.875rem; line-height: 1.6; color: #6b7280; }

.sd-adv { display: grid; gap: 2rem; }
@media (min-width: 768px) { .sd-adv { grid-template-columns: repeat(2, 1fr); } }
.sd-adv__row { display: flex; gap: 1.5rem; padding: 1.5rem; border-radius: 1rem; border: 1px solid transparent; transition: 0.2s; }
.sd-adv__row:hover { background: rgba(239, 246, 255, 0.5); border-color: #dbeafe; }
.sd-adv__row > div:first-of-type { flex-shrink: 0; }
.sd-adv__ico { width: 4rem; height: 4rem; border-radius: 1rem; background: #dbeafe; color: #2563eb; display: flex; align-items: center; justify-content: center; }
.sd-adv__ico svg { width: 2rem; height: 2rem; }
.sd-adv__row h3 { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.sd-adv__row p { color: #6b7280; line-height: 1.6; }

.sd-sopqa { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .sd-sopqa { grid-template-columns: 1fr 1fr; } }
.sd-sop { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.sd-sop::before { content: ""; position: absolute; left: 1.5rem; top: 1rem; bottom: 1rem; width: 2px; background: #e5e7eb; }
.sd-sop__step { position: relative; display: flex; gap: 1.5rem; align-items: flex-start; }
.sd-sop__num {
  width: 3rem; height: 3rem; border-radius: 9999px; background: #fff; border: 2px solid #2563eb; color: #2563eb;
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sd-sop__body { background: #fff; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; flex: 1; margin-top: 0.25rem; }
.sd-sop__body h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.sd-sop__body p { font-size: 0.875rem; color: #6b7280; line-height: 1.6; }

.sd-qa { display: flex; flex-direction: column; gap: 1.5rem; }
.sd-qa__item { background: #fff; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.sd-qa__item:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.sd-qa__q { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.sd-qa__tag { width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #dbeafe; color: #2563eb; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sd-qa__tag--a { background: #dcfce7; color: #16a34a; }
.sd-qa__q h3, .sd-qa__a p { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 0; }
.sd-qa__a p { font-weight: 400; font-size: 0.875rem; }
.sd-qa__a { display: flex; gap: 0.75rem; }
.sd-qa__a p { line-height: 1.6; }

.sd-cta {
  position: relative; padding: 3rem 0; background: #2563eb; color: #fff; overflow: hidden; text-align: center;
  background: oklch(0.45 0.15 260);
}
.sd-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop");
  background-size: cover; background-position: center; opacity: 0.1; mix-blend-mode: overlay; pointer-events: none;
}
.sd-cta .container { position: relative; z-index: 1; }
.sd-cta h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1.5rem; color: #fff; }
@media (min-width: 768px) { .sd-cta h2 { font-size: 2.25rem; } }
.sd-cta p { font-size: 1.25rem; color: #bfdbfe; max-width: 42rem; margin: 0 auto 2.5rem; }
.sd-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.sd-cta a.sd-cta--primary, .sd-cta a.sd-cta--outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; border-radius: 0.5rem; text-decoration: none; font-weight: 700; transition: 0.2s;
}
.sd-cta a.sd-cta--primary { background: #fff; color: #2563eb; }
.sd-cta a.sd-cta--primary:hover { background: #eff6ff; }
.sd-cta a.sd-cta--outline { border: 1px solid #fff; color: #fff; background: transparent; font-weight: 500; }
.sd-cta a.sd-cta--outline:hover { background: rgba(255, 255, 255, 0.1); }
