.detail-main { padding: 12px 12px 98px; }
.detail-header { position: sticky; }
.header-link { display: grid; place-items: center; text-decoration: none; }

.expert-hero,
.detail-section {
  margin-bottom: 14px;
  padding: 17px 16px;
  border: 1px solid rgba(225, 225, 242, .86);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(37, 42, 62, .06);
}

.expert-hero { padding-top: 20px; }
.expert-profile { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px; }
.expert-photo { width: 82px; height: 82px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dfe1f2, 0 7px 18px rgba(58, 62, 87, .16); }
.expert-identity { position: relative; padding-left: 11px; }
.expert-identity::before { content: ""; position: absolute; top: 2px; left: 0; width: 3px; height: 20px; border-radius: 3px; background: #ee6e73; }
.expert-name-row { display: flex; align-items: center; gap: 7px; }
.expert-name-row h2 { margin: 0; font-size: 21px; }
.primary-title { margin: 6px 0 8px; color: #555963; font-size: 13px; }
.primary-title b,
.specialty-row > b { color: #555963; font-weight: 500; align-self: self-start; padding-top: 4px;}
.specialty-row { display: flex; align-items: center; gap: 5px; color: #555963; font-size: 12px; white-space: nowrap; }
.expert-specialties { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.expert-specialties span { padding: 4px 8px; border-radius: 999px; color: #e45b69; background: #fff0f2; font-size: 11px; }

.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; padding: 13px 5px; border-radius: 14px; background: #faf7f8; }
.trust-stats div { display: grid; gap: 2px; text-align: center; }
.trust-stats div + div { border-left: 1px solid #ebe5e7; }
.trust-stats strong { color: #dc5066; font-size: 15px; }
.trust-stats span { color: #8a8588; font-size: 10px; }

.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px;font-size: 18px; }
.outline-button,
.primary-button { min-height: 43px; border-radius: 11px; font-weight: 700; }
.outline-button { border: 1px solid #ef7278; color: #e85f67; background: #fff; }
.primary-button { border: 0; color: #fff; background: #39bf28; }

.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title-row h2 { margin: 0; color: #ef5268; font-size: 20px; white-space: nowrap; }
.section-kicker { color: #e75d70; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.verified-label,
.proof-note { padding: 5px 8px; border-radius: 999px; color: #a16e77; background: #fff2f4; font-size: 10px; white-space: nowrap; }

.certificate-card { display: grid; grid-template-columns: 49px 1fr 16px; align-items: center; gap: 11px; width: 100%; padding: 13px; border: 1px solid #f0d8dc; border-radius: 15px; color: #3d3e44; background: linear-gradient(135deg, #fff8f9 0%, #fff 65%); text-align: left; }
.certificate-seal { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #f58993, #e85f6d); box-shadow: 0 5px 12px rgba(233, 96, 109, .2); font-size: 20px; }
.certificate-copy { display: grid; gap: 4px; }
.certificate-copy strong { font-size: 15px; }
.certificate-copy small { color: #777982; font-size: 11px; line-height: 1.4; }
.certificate-copy em { color: #9a6b72; font-size: 11px; font-style: normal; }
.certificate-copy b { font-weight: 500; }
.certificate-arrow { color: #df6875; font-size: 25px; }

.field-note { margin: 11px 1px 0; color: #92949b; font-size: 10px; line-height: 1.55; }
.field-note code { color: #b34e5e; font-family: ui-monospace, Consolas, monospace; }
.bio-copy { color: #52555d; font-size: 13px; line-height: 1.85; }
.bio-copy p { margin: 0; }
.bio-copy p + p { margin-top: 10px; }

.section-more { padding: 5px 0 5px 8px; border: 0; color: #e85f6f; background: transparent; font-size: 12px; }
.content-card-list { display: grid; gap: 10px; }
.content-card { padding: 14px; border: 1px solid #efedf0; border-radius: 14px; background: #faf9fa; }
.content-tag { display: inline-block; padding: 3px 7px; border-radius: 999px; color: #df6372; background: #ffecef; font-size: 10px; }
.content-card h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.45; }
.content-card p { margin: 0; color: #74767e; font-size: 11px; line-height: 1.65; }
.content-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; padding: 9px 0 0; border: 0; border-top: 1px solid #e6e4e7; color: #e05e6e; background: transparent; font-weight: 700; text-align: left; }
.content-card button small { color: #a2a3a8; font-size: 9px; font-weight: 400; }

.view-list { display: grid; }
.view-item { display: grid; grid-template-columns: 31px 1fr 10px; align-items: center; gap: 9px; padding: 12px 0; border: 0; border-bottom: 1px solid #eeecef; color: #36383e; background: transparent; text-align: left; }
.view-item:last-child { border-bottom: 0; }
.view-index { color: #e96977; font-family: Georgia, serif; font-size: 16px; }
.view-item > span:nth-child(2) { display: grid; gap: 5px; }
.view-item strong { font-size: 13px; line-height: 1.5; }
.view-item small { color: #989aa0; font-size: 10px; }
.view-item b { color: #c5c4c8; font-size: 20px; }

.reputation-section { padding-right: 0; padding-left: 0; overflow: hidden; }
.reputation-section > .section-title-row { padding: 0 16px; }
.legacy-review-strip,
.legacy-banner-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.legacy-review-strip::-webkit-scrollbar,
.legacy-banner-strip::-webkit-scrollbar { display: none; }
.legacy-review-strip img { flex: 0 0 218px; width: 218px; height: 390px; border-radius: 23px; object-fit: cover; object-position: top; scroll-snap-align: start; box-shadow: 0 4px 13px rgba(28, 28, 36, .12); }
.legacy-banner-title { margin: 18px 0 12px; }
.legacy-banner-strip article { flex: 0 0 154px; overflow: hidden; border: 1px solid #efedf0; border-radius: 4px; background: #fff; scroll-snap-align: start; }
.legacy-banner-strip img { display: block; width: 100%; height: 136px; object-fit: cover; }
.legacy-banner-strip strong { display: block; padding: 7px 8px 2px; color: #202126; font-size: 13px; font-weight: 500; text-align: center; }
.legacy-banner-strip p { min-height: 45px; margin: 0; padding: 0 8px 9px; color: #666970; font-size: 10px; line-height: 1.45; }

.process-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.process-intro { margin: -3px 0 16px; padding: 10px 12px; border-left: 3px solid #ef5268; border-radius: 0 9px 9px 0; color: #5f626b; background: #f5f6f8; font-size: 11px; line-height: 1.6; }
.process-list li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding-bottom: 16px; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 31px; bottom: 2px; left: 18px; width: 1px; background: #f1ccd2; }
.process-list > li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 37px; height: 27px; border-radius: 999px; color: #e45f70; background: #fff0f3; font-size: 10px; font-weight: 700; }
.process-list strong { font-size: 13px; }
.process-list p { margin: 4px 0 0; color: #7d7f86; font-size: 11px; line-height: 1.6; }
.process-list em { display: block; margin-top: 9px; padding: 8px 10px; border-left: 3px solid #ef5268; border-radius: 0 8px 8px 0; color: #244266; background: #f2f4f7; font-size: 10px; font-style: normal; font-weight: 600; line-height: 1.55; }

.detail-bottom-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1.18fr; gap: 10px; width: min(100%, 430px); margin: 0 auto; padding: 9px 13px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid #ececf1; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.detail-bottom-button { min-height: 46px; padding: 0 8px; border-radius: 11px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.certificate-bottom { border: 0; background: #ee7175; }
.appointment-bottom { border: 0; background: #38be28; }

@media (max-width: 355px) {
  .expert-profile { grid-template-columns: 70px 1fr; gap: 11px; }
  .expert-photo { width: 70px; height: 70px; }
  .trust-stats strong { font-size: 13px; }
}
