/* ============================================================
 * ysxxlm.com SEO 着陆页独立全局样式表
 * 用途：/article/{id}.html、/course/{id}.html、/seminar/{id}.html
 * 特点：不依赖 uni-app 构建产物与 data-v 作用域属性，
 *       前端发版不会导致 SEO 页样式失效；自带移动端适配。
 * 基准：线上 app.f6306958.css 真实规则移植（品牌色 #288cfb）
 * 版本：v1.0 2026-10-26（前端 Step 5 交付）
 * ============================================================ */

:root {
    --brand: #288cfb;
    --brand-hover: #409aff;
    --text-main: #252a33;
    --text-title: #0a0a11;
    --text-sub: #8a929a;
    --text-muted: #a4a4a4;
    --bg-page: #f7f7f7;
    --bg-card: #fff;
    --bg-statement: #f1f1f1;
    --bg-footer: #081626;
    --border-light: #eee;
    --header-h: 84px;
    --page-max: 1200px;
}

/* ---------- 基础重置（仅覆盖 SEO 页所需，避免全局污染） ---------- */
.seo-page, .seo-page * { box-sizing: border-box; }
.seo-page {
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: var(--text-main);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.seo-page img { border: 0; vertical-align: middle; }
.seo-page a { color: inherit; text-decoration: none; }
.seo-page a:hover { color: var(--brand); }
.seo-page h1, .seo-page h2, .seo-page h3 { margin: 0; font-weight: 500; }

/* ---------- 头部（移植自 .other-header 真实规则） ---------- */
.seo-header { background: var(--brand); height: var(--header-h); }
.seo-header-main {
    max-width: var(--page-max);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.seo-header-logo { width: 137px; flex: none; }
.seo-header-logo img { height: 40px; display: block; }
.seo-header-nav { display: flex; align-items: center; margin-left: 30px; flex: 1; }
.seo-header-nav-item {
    padding: 0 24px;
    height: var(--header-h);
    line-height: var(--header-h);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.seo-header-nav-item:hover { background: #fff; color: var(--brand); }
.seo-header-nav-item.active { background: #fff; color: var(--brand); }
.seo-header-login {
    flex: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- 文章页（移植自 .actciles-detail-* 真实规则） ---------- */
.seo-main { max-width: var(--page-max); margin: 30px auto 50px; display: flex; align-items: flex-start; }
.seo-article-info {
    width: 800px; flex: none;
    background: var(--bg-card);
    padding: 0 30px 0 20px;
}
/* H1：对齐线上 h4 真实规格（28px/45px/#0a0a11/两行截断），并消除浏览器默认外边距 */
.seo-article-title { display: flex; align-items: center; margin-top: 20px; }
.seo-article-title h1 {
    flex: 1; margin: 0;
    font-size: 28px; line-height: 45px; color: var(--text-title); font-weight: 500;
    max-height: 90px; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.seo-article-other {
    margin-top: 10px; color: var(--text-sub); font-size: 14px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.seo-article-view { margin-left: auto; }

/* 正文（ueditor / 135editor 富文本归一化） */
.seo-article-html { margin: 30px 0 50px; font-size: 18px; line-height: 30px; color: var(--text-main); word-break: break-word; }
.seo-article-html img { max-width: 100% !important; height: auto !important; }
.seo-article-html p { margin: 0 0 12px; }
.seo-article-html table { border-collapse: collapse; width: 100%; max-width: 100%; }
.seo-article-html table td, .seo-article-html table th { border: 1px solid var(--border-light); padding: 6px 10px; }
.seo-article-html section { max-width: 100%; }
.seo-article-html iframe { max-width: 100%; }

/* 声明 */
.seo-article-statement { padding-bottom: 50px; }
.seo-article-statement-c {
    background: var(--bg-statement); padding: 12px 18px;
    color: #999; font-size: 14px; line-height: 1.8;
}

/* 右侧推荐（固定宽度对齐原版 380px；flex item 需 min-width:0 防 nowrap 长标题撑破容器） */
.seo-article-right { width: 380px; flex: none; margin-left: 20px; min-width: 0; }
.seo-rec-item { min-width: 0; }
.seo-rec-list { background: var(--bg-card); padding: 0 20px; }
.seo-rec-title { margin: 0; padding: 30px 0 10px; font-size: 20px; color: var(--text-main); position: relative; padding-left: 14px; }
.seo-rec-title:before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -10px;
    width: 4px; height: 20px; background: var(--brand);
}
.seo-rec-item {
    display: flex; padding: 20px 0; border-bottom: 1px solid var(--border-light);
    color: inherit;
}
.seo-rec-item:last-child { border-bottom: 0; }
.seo-rec-item:hover .seo-rec-item-title { color: var(--brand); }
.seo-rec-item-img { width: 124px; height: 70px; flex: none; overflow: hidden; }
.seo-rec-item-img img { width: 100%; height: 100%; object-fit: cover; }
.seo-rec-item-info { margin-left: 13px; min-width: 0; flex: 1; }
/* 标题/元信息必须 block，否则 inline span 下 nowrap+ellipsis 不生效会撑破侧栏 */
.seo-rec-item-title {
    display: block;
    font-size: 18px; color: var(--text-main); line-height: normal;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seo-rec-item-meta { display: block; color: var(--text-sub); font-size: 14px; margin-top: 6px; }
.seo-rec-item-meta span { display: inline-block; }
.seo-rec-item-meta span + span { margin-left: 14px; }

/* ---------- 课程 / 直播页（移植自 .lct-detail-* 真实规则） ---------- */
.seo-course-head { background: var(--bg-card); box-shadow: 0 0 9px 1px rgba(207,207,207,.6); }
.seo-course-head-main { max-width: var(--page-max); margin: 0 auto; padding: 0 16px 30px; }
.seo-crumbs { padding: 20px 0; font-size: 18px; color: var(--text-muted); }
.seo-crumbs a { color: var(--text-muted); }
.seo-crumbs a:hover { color: var(--brand); }
.seo-crumbs .sep { margin: 0 5px; }
.seo-course-top { display: flex; min-width: 0; }
.seo-course-banner { width: 472px; flex: none; }
.seo-course-banner img { width: 100%; border-radius: 5px; display: block; }
.seo-course-info { flex: 1; min-width: 0; margin-left: 27px; }
/* H1：对齐线上 h4 真实规格 */
.seo-course-title { display: flex; }
.seo-course-title h1 {
    flex: 1; margin: 0;
    font-size: 28px; line-height: 45px; color: var(--text-title); font-weight: 500;
    max-height: 90px; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.seo-course-author { font-size: 24px; color: #090b11; margin: 7px 0; }
.seo-course-author strong { margin-right: 20px; font-weight: 500; }
.seo-course-meta { display: flex; align-items: center; margin-top: 14px; font-size: 16px; }
.seo-course-meta .label { color: var(--text-sub); margin-right: 8px; }
.seo-rank-tag {
    display: inline-block; height: 24px; line-height: 24px; padding: 0 10px;
    background: #e6f2ff; color: var(--brand); border-radius: 4px;
    font-size: 14px; margin-right: 8px;
}
.seo-course-count { margin-left: auto; color: var(--text-sub); font-size: 14px; }
.seo-course-cta { margin-top: 24px; }
.seo-btn-primary {
    display: inline-block; padding: 0 32px; height: 44px; line-height: 44px;
    background: var(--brand); color: #fff; font-size: 16px; border-radius: 4px;
}
.seo-btn-primary:hover { background: var(--brand-hover); color: #fff; }
.seo-course-intro { max-width: var(--page-max); margin: 30px auto; padding: 0 16px; }
.seo-course-intro-title { font-size: 22px; color: var(--text-main); font-weight: 500; margin-bottom: 16px; position: relative; padding-left: 14px; }
.seo-course-intro-title:before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 4px; height: 20px; background: var(--brand);
}
.seo-course-intro-body { font-size: 16px; line-height: 28px; color: var(--text-main); word-break: break-word; }
.seo-course-intro-body img { max-width: 100% !important; height: auto !important; }
.seo-course-intro-body p { margin: 0 0 12px; }

/* ---------- 页脚（移植自 .footer 真实规则） ---------- */
.seo-footer { padding: 50px 16px; color: #fff; font-size: 18px; background: var(--bg-footer); text-align: center; line-height: 40px; }
.seo-footer a { color: #fff; }
.seo-footer a:hover { color: var(--brand-hover); }

/* ---------- 悬浮工具条：桌面显示，移动端隐藏 ---------- */
.seo-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 99; }

/* ---------- 移动端适配（原页 min-width:1200px 桌面专属，此处补齐） ---------- */
@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .seo-header-main { padding: 0 12px; }
    .seo-header-logo img { height: 28px; }
    .seo-header-nav { overflow-x: auto; margin-left: 12px; -webkit-overflow-scrolling: touch; }
    .seo-header-nav-item { font-size: 15px; padding: 0 14px; font-weight: 400; }
    .seo-header-login { font-size: 14px; }

    .seo-main { display: block; margin: 12px 12px 30px; }
    .seo-article-info { width: 100%; padding: 0 14px; }
    .seo-article-title h1 { font-size: 22px; line-height: 32px; max-height: 64px; }
    .seo-article-html { font-size: 16px; line-height: 28px; }
    .seo-article-right { margin: 20px 0 0; }

    .seo-course-top { display: block; }
    .seo-course-banner { width: 100%; }
    .seo-course-info { margin: 14px 0 0; }
    .seo-course-title h1 { font-size: 22px; line-height: 32px; max-height: 64px; }
    .seo-course-author { font-size: 18px; }
    .seo-crumbs { font-size: 14px; padding: 12px 0; }

    .seo-footer { font-size: 13px; line-height: 28px; padding: 24px 12px; }
    .seo-float { display: none; }
}
