/* ========================================================================
   服务/测算详情页样式 (Service/Detail.cshtml)
   统一规范：
     - 大圆角 12px / 中圆角 8px / 小圆角 6px / 胶囊 999px
     - 边框颜色 #f0f0f0
     - 阴影 0 1px 3px rgba(0,0,0,.06)
   本文件自包含，不依赖其它页面样式文件。
   ======================================================================== */

/* ------------------------------------------------------------------------
   1. 页面布局（两栏：主内容 + 右侧边栏）
   ------------------------------------------------------------------------ */
.main-wrap.service-wrap { background: #f5f5f5; }
.service-container { max-width: 1350px; margin: 0 auto;  }
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 1024px) {
    .service-layout { grid-template-columns: 1fr; }
}

/* 右侧边栏吸顶：与频道页保持一致 */
.sidebar { position: sticky; top: 1.25rem; }
@media (max-width: 1024px) {
    .sidebar { position: static; }
}

/* ------------------------------------------------------------------------
   2. 面包屑（基于 ZUI 组件，仅补充间距与配色细节）
   ------------------------------------------------------------------------ */
.breadcrumb { font-size: 0.875rem; color: #888; margin: 5px 0; }
.breadcrumb a { color: #888; text-decoration: none; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--color-primary, #2563eb); }
.breadcrumb a .icon { margin-right: 0.25rem; font-size: 0.875rem; }

/* ------------------------------------------------------------------------
   3. 主内容卡片
   ------------------------------------------------------------------------ */
/* 左侧主卡片 */
.service-card { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f0f0f0; overflow: hidden; }
.service-header { padding: 2rem 2rem 1.25rem; border-bottom: 1px solid #f8f8f8; }
.service-title { font-size: 1.75rem; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
/* 标签行（频道 + 模拟测算人数） */
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; }
.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all .2s ease;
}
.service-tag .icon { font-size: 0.8125rem; }
/* 频道标签：橙色描边 + 浅橙底，hover 填充 */
.service-tag-channel {
    color: #f97316;
    background: #fff7ed;
    border-color: #fed7aa;
    text-decoration: none;
}
.service-tag-channel:hover {
    color: #fff;
    background: #f97316;
    border-color: #f97316;
}
/* 模拟测算人数标签：绿色调 */
.service-tag-qty {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.service-detail-card { padding: 24px; }
.service-header { display: flex; align-items: center; gap: 18px; }
.service-icon {
    width: 72px; height: 72px; flex: 0 0 72px;
    border-radius: 12px; overflow: hidden;
    background: #f3f4f6; display: flex; align-items: center; justify-content: center;
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-icon-placeholder { font-size: 36px; }
.service-head-info { flex: 1; }
.service-slogan { margin-top: 6px; color: #6b7280; font-size: 0.95rem; }
/* ------------------------------------------------------------------------
   3.5 详情正文卡片（service-content：内含 SeoContent 渲染内容）
   ------------------------------------------------------------------------ */
.service-content {
    min-height: 120px;
    margin-top: 1.5rem;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
}
/* 卡片标题栏 */
.service-content-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #333;
    background: #fafafa;
}
.service-content-head .icon { color: #f97316; font-size: 1.05rem; }
/* 卡片正文区 */
.service-content-body {
    padding: 1.25rem 1.5rem 1.5rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* 段落 */
.service-content-body p {
    margin: 0 0 1rem;
    color: #4b5563;
    line-height: 1.9;
}
.service-content-body p:last-child { margin-bottom: 0; }
/* 标题层级 */
.service-content-body h1,
.service-content-body h2,
.service-content-body h3,
.service-content-body h4,
.service-content-body h5,
.service-content-body h6 {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin: 1.75rem 0 0.875rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}
.service-content-body h1 { font-size: 1.6rem; }
.service-content-body h2 { font-size: 1.35rem; }
.service-content-body h3 { font-size: 1.2rem; }
.service-content-body h4 { font-size: 1.075rem; }
.service-content-body h5 { font-size: 1rem; }
.service-content-body h6 { font-size: 0.95rem; color: #6b7280; }
.service-content-body h1:first-child,
.service-content-body h2:first-child,
.service-content-body h3:first-child { margin-top: 0.25rem; }
/* 列表 */
.service-content-body ul,
.service-content-body ol {
    margin: 0 0 1.1rem;
    padding-left: 1.5rem;
    color: #4b5563;
}
.service-content-body ul { list-style: disc; }
.service-content-body ol { list-style: decimal; }
.service-content-body li {
    margin: 0.4rem 0;
    line-height: 1.85;
    padding-left: 0.25rem;
}
.service-content-body li::marker { color: #f97316; }
.service-content-body li > ul,
.service-content-body li > ol { margin: 0.4rem 0 0.4rem; }
/* 强调 / 加粗 / 行内高亮 */
.service-content-body strong,
.service-content-body b {
    color: #1f2937;
    font-weight: 700;
    margin: 0 0.15rem;
}
.service-content-body em,
.service-content-body i { color: #6b7280; font-style: normal; }
/* 链接 */
.service-content-body a {
    color: #f97316;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.service-content-body a:hover { color: #ea580c; border-bottom-color: #f97316; }
/* 行内代码 / 代码块 */
.service-content-body code {
    background: #f3f4f6;
    color: #d946ef;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    font-size: 0.875em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.service-content-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}
.service-content-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}
/* 引用 */
.service-content-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #fff7ed;
    border-left: 4px solid #f97316;
    color: #6b7280;
    border-radius: 0 2px 2px 0;
}
.service-content-body blockquote p:last-child { margin-bottom: 0; }
/* 分割线 */
.service-content-body hr {
    border: 0;
    height: 1px;
    background: #f0f0f0;
    margin: 1.5rem 0;
}
/* 表格 */
.service-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.service-content-body th,
.service-content-body td {
    border: 1px solid #f0f0f0;
    padding: 0.6rem 0.85rem;
    text-align: left;
}
.service-content-body th { background: #fafafa; font-weight: 600; color: #1f2937; }
/* 图片 */
.service-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}
/* 通用高亮 span（用于产品端内联彩色文字，如 八字合盘） */
.service-content-body span[style*="color"] { font-weight: 600; }
/* 空内容占位 */
.service-content-body .empty-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1rem 1rem 1.5rem; color: #9ca3af; gap: 0.5rem;
}
.service-content-body .empty-content .icon { font-size: 1.75rem; }

/* 测算表单卡片（与下方 service-content 卡片风格统一：标题栏 + 白底 + 边框 + 圆角 + 阴影） */
.service-form-wrap { margin-bottom: 12px; }
.service-form-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
}
/* 卡片标题栏（与 service-content-head 一致） */
.service-form-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #333;
    background: #fafafa;
}
.service-form-head .icon { color: #f97316; font-size: 1.05rem; }
/* 卡片正文区 */
.service-form-body { padding: 1.5rem; }
.form-success {
    margin-bottom: 14px; padding: 12px 16px;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
    border-radius: 8px; font-size: 0.95rem;
}

/* ------------------------------------------------------------------------
   4. 右侧边栏：通用 widget 卡片（与其它页面保持一致）
   ------------------------------------------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.widget {
    background: #fff; border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden;
}
.widget-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid #f5f5f5;
}
.widget-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: #333; }
.widget-title .icon { color: #f97316; }
.widget-links { display: flex; gap: 1rem; font-size: 0.875rem; }
.widget-links a { color: #999; text-decoration: none; }
.widget-links a:hover { color: var(--color-primary, #2563eb); }
.widget-body { padding: 1.25rem; }

/* ------------------------------------------------------------------------
   5. 本频道文章列表（样式见 sidebar-services.css 共享，此处仅保留列表项）
   ------------------------------------------------------------------------ */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li + li { border-top: 1px solid #f5f5f5; }
.latest-list a { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1.25rem; color: #444; text-decoration: none; }
.latest-list a:hover { background: #fafafa; }
.latest-list a:hover .latest-title { color: #f97316; }
.latest-tag {
    width: 1.25rem; height: 1.25rem; border-radius: 0.25rem;
    background: #f3f4f6; color: #888; font-size: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 0.125rem;
}
.latest-list a:hover .latest-tag { background: #f97316; color: #fff; }
.latest-title { flex: 1; font-size: 0.875rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
