/* 服务市场 · 小米商城式 */
.svc-page { background: #f5f5f5; min-height: 60vh; color: #333; }
.svc-page__top {
    background: #fff;
    padding: 18px 0 22px;
    margin-bottom: 22px;
}
.svc-crumb {
    font-size: 13px;
    color: #9e9e9e;
    margin-bottom: 16px;
}
.svc-crumb a { color: #757575; }
.svc-crumb a:hover { color: #ff6700; }
.svc-crumb span { margin: 0 6px; }
.svc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.svc-head h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 400;
    color: #212121;
}
.svc-head p { margin: 0; color: #757575; font-size: 14px; }
.svc-head__actions { display: flex; gap: 10px; flex-shrink: 0; }

.svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #424242;
    border-radius: 2px;
    font-size: 14px;
}
.svc-btn:hover { color: #ff6700; border-color: #ff6700; }
.svc-btn--primary {
    background: #ff6700;
    border-color: #ff6700;
    color: #fff;
    font-weight: 700;
}
.svc-btn--primary:hover { background: #f06000; color: #fff; }
.svc-btn--block { width: 100%; }

.svc-cats {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}
.svc-cat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 112px;
    padding: 16px 14px;
    background: #fafafa;
    color: inherit;
    border: 2px solid transparent;
}
.svc-cat:hover { color: inherit; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.svc-cat.is-active { border-color: #ff6700; background: #fff; }
.svc-cat i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #ff6700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.svc-cat strong { font-size: 14px; font-weight: 600; }
.svc-cat span { font-size: 12px; color: #9e9e9e; line-height: 1.35; }

.svc-page__body { padding-bottom: 48px; }
.svc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.svc-search {
    display: flex;
    flex: 1;
    max-width: 520px;
    background: #fff;
    border: 1px solid #e0e0e0;
}
.svc-search input {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    font-size: 14px;
    background: transparent;
    color: inherit;
}
.svc-search button {
    border: 0;
    background: #ff6700;
    color: #fff;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}
.svc-sort { display: flex; gap: 16px; font-size: 14px; color: #757575; }
.svc-sort a:hover,
.svc-sort .is-active { color: #ff6700; }
.svc-tip { font-size: 13px; color: #9e9e9e; margin: 0 0 16px; }
.svc-tip a { color: #ff6700; }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.svc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 22px 20px 18px;
    color: inherit;
    min-height: 260px;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.svc-card:hover { box-shadow: 0 14px 28px rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.svc-card__mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255,103,0,.1);
    color: #ff6700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.svc-card--miniapp .svc-card__mark { background: rgba(124,58,237,.1); color: #6d28d9; }
.svc-card--seo .svc-card__mark { background: rgba(13,148,136,.1); color: #0f766e; }
.svc-card--design .svc-card__mark { background: rgba(219,39,119,.1); color: #be185d; }
.svc-card--ops .svc-card__mark { background: rgba(3,105,161,.1); color: #0369a1; }
.svc-card--operate .svc-card__mark { background: rgba(217,119,6,.12); color: #b45309; }
.svc-card--other .svc-card__mark { background: #f3f4f6; color: #64748b; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.svc-card__tags span,
.svc-card__tags em {
    font-size: 12px;
    font-style: normal;
    padding: 2px 8px;
    background: #f5f5f5;
    color: #757575;
}
.svc-card__tags em { background: #fff3e8; color: #ff6700; }
.svc-card__tags .is-nego { background: #eef6ff; color: #1565c0; }
.svc-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #212121;
    max-height: 2.8em;
    overflow: hidden;
}
.svc-card__meta,
.svc-card__summary {
    margin: 0 0 6px;
    font-size: 13px;
    color: #9e9e9e;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
}
.svc-card__foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.svc-card__foot strong { color: #ff6700; font-size: 16px; font-weight: 700; }
.svc-card__foot span { font-size: 12px; color: #bdbdbd; }

.svc-empty {
    text-align: center;
    background: #fff;
    padding: 64px 24px;
}
.svc-empty__icon { font-size: 36px; color: #e0e0e0; margin-bottom: 12px; }
.svc-empty h3 { margin: 0 0 8px; font-weight: 400; font-size: 18px; }
.svc-empty p { margin: 0 0 18px; color: #9e9e9e; }

.svc-page--detail { padding: 18px 0 48px; }
.svc-page--detail .svc-crumb { margin-bottom: 16px; }
.svc-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: start;
}
.svc-detail__main,
.svc-box { background: #fff; padding: 28px 28px 24px; }
.svc-detail__main h1 {
    margin: 8px 0 10px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.35;
}
.svc-detail__price {
    margin: 0 0 8px;
    color: #ff6700;
    font-size: 28px;
    font-weight: 700;
}
.svc-detail__sub { margin: 0 0 20px; color: #9e9e9e; font-size: 13px; }
.svc-spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin: 0 0 22px;
    padding: 16px;
    background: #fafafa;
}
.svc-spec dt { font-size: 12px; color: #9e9e9e; }
.svc-spec dd { margin: 4px 0 0; font-size: 14px; color: #424242; }
.svc-detail__lead { font-size: 15px; line-height: 1.7; color: #616161; }
.svc-detail__body { margin-top: 22px; }
.svc-detail__body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.svc-detail__body p { margin: 0; color: #616161; line-height: 1.75; }

.svc-detail__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.svc-box h3, .svc-box h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.svc-box p { margin: 0 0 14px; font-size: 13px; color: #9e9e9e; }
.svc-box__owner { color: #ff6700 !important; }
.svc-box label { display: block; font-size: 13px; color: #757575; margin: 0 0 6px; }
.svc-box input,
.svc-box textarea {
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    color: inherit;
}
.svc-box--mute ul { margin: 0; padding-left: 18px; color: #757575; font-size: 13px; line-height: 1.7; }
.svc-related { list-style: none; margin: 0; padding: 0; }
.svc-related a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    font-size: 13px;
}
.svc-related a:hover { color: #ff6700; }
.svc-related strong { color: #ff6700; flex-shrink: 0; }

html[data-theme="dark"] .svc-page { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .svc-page__top,
html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .svc-empty,
html[data-theme="dark"] .svc-detail__main,
html[data-theme="dark"] .svc-box,
html[data-theme="dark"] .svc-cat.is-active { background: var(--bg-card); }
html[data-theme="dark"] .svc-cat { background: var(--bg-subtle, #1a1a1a); }
html[data-theme="dark"] .svc-head h1,
html[data-theme="dark"] .svc-card h2,
html[data-theme="dark"] .svc-detail__main h1 { color: var(--text); }
html[data-theme="dark"] .svc-search { background: var(--bg-card); border-color: var(--border); }
html[data-theme="dark"] .svc-spec { background: var(--bg-subtle, #1a1a1a); }

@media (max-width: 1100px) {
    .svc-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .svc-head { flex-direction: column; align-items: flex-start; }
    .svc-toolbar { flex-direction: column; align-items: stretch; }
    .svc-search { max-width: none; }
    .svc-detail { grid-template-columns: 1fr; }
    .svc-detail__side { position: static; }
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .svc-cats,
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .svc-spec { grid-template-columns: 1fr; }
}
