/* 九狸系统优化大师 — 独立详情页 v2 */

body.jo-page {
    --jo-bg: #f0f2f5;
    --jo-dark: #1a1d26;
    --jo-orange: #ff7a38;
    --jo-orange2: #ff9f5a;
    background: var(--jo-bg);
    color: #1f2329;
    -webkit-font-smoothing: antialiased;
}

.jo-page a { text-decoration: none; }

.jo-crumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    font-size: 13px;
    color: #8f959e;
}
.jo-crumb a { color: #646a73; transition: color .15s; }
.jo-crumb a:hover { color: var(--jo-orange); }
.jo-crumb .layui-icon { font-size: 11px; color: #cfd5de; padding: 0 3px; }
.jo-crumb em { font-style: normal; font-weight: 500; color: #1f2329; }

.jo-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #12151c 0%, var(--jo-dark) 50%, #1e2430 100%);
    color: #e5e7eb;
    padding: 40px 0 48px;
}
.jo-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 56, .2), transparent 70%);
    pointer-events: none;
}
.jo-hero-in {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 40px;
    align-items: center;
}
.jo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 122, 56, .12);
    border: 1px solid rgba(255, 122, 56, .3);
    color: var(--jo-orange2);
    font-size: 12px;
    font-weight: 600;
}
.jo-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}
.jo-ver {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    vertical-align: middle;
}
.jo-lead {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #94a3b8;
    max-width: 540px;
}
.jo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jo-tags span {
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
    color: #cbd5e1;
}
.jo-shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 122, 56, .22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .5);
    line-height: 0;
}
.jo-shot img { display: block; width: 100%; height: auto; }

.jo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 28px 0 56px;
    align-items: start;
}
.jo-main { min-width: 0; }

.jo-sec {
    margin-bottom: 24px;
    padding: 24px 26px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8eaef;
    box-shadow: 0 2px 12px rgba(31, 35, 41, .04);
}
.jo-sec-h {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: #111827;
}
.jo-sec-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7280;
}

.jo-feat {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}
.jo-feat:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.jo-feat-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
}
.jo-feat-h .layui-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff0e8, #ffe2cf);
    color: var(--jo-orange);
    font-size: 18px;
    font-family: layui-icon !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.jo-feat-h .layui-icon:before {
    font-family: layui-icon !important;
    display: inline-block;
    line-height: 32px;
}
.jo-feat-h .layui-icon-chart-screen:before { content: '\e629'; }
.jo-feat-h .layui-icon-delete:before { content: '\e640'; }
.jo-feat-h .layui-icon-app:before { content: '\e653'; }
.jo-feat-h .layui-icon-fire:before { content: '\e756'; }
.jo-feat-h .layui-icon-component:before { content: '\e857'; }
.jo-feat-ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.75;
    color: #4b5563;
}
.jo-feat-ul li { margin: 6px 0; }
.jo-feat-ul strong { color: #1f2937; font-weight: 600; }
.jo-feat-lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}
.jo-feat-highlight {
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8f4 0%, #fff 100%);
    border: 1px solid #ffe0cc;
    border-bottom: 1px solid #ffe0cc !important;
}
.jo-opt-flow {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: joopt;
}
.jo-opt-flow li {
    position: relative;
    padding: 12px 12px 12px 44px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f0f2f5;
    font-size: 13px;
    line-height: 1.55;
}
.jo-opt-flow li:last-child { margin-bottom: 0; }
.jo-opt-flow li::before {
    counter-increment: joopt;
    content: counter(joopt);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jo-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.jo-opt-flow strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
}
.jo-opt-flow span { color: #6b7280; }
.jo-opt-flow em { font-style: normal; color: #d97706; font-weight: 600; }

.jo-sec.jo-sec-flat {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.jo-safe {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbeb, #fff);
    border: 1px solid #fde68a;
}
.jo-safe i {
    flex-shrink: 0;
    font-size: 20px;
    color: #d97706;
}
.jo-safe p { margin: 0; font-size: 13px; line-height: 1.65; color: #92400e; }

.jo-steps {
    counter-reset: jostep;
    padding: 4px 0 0;
}
.jo-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}
.jo-step:last-child { border-bottom: 0; padding-bottom: 0; }
.jo-step-no {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jo-orange), var(--jo-orange2));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(255, 122, 56, .3);
    flex-shrink: 0;
}
.jo-step-no::before {
    counter-increment: jostep;
    content: counter(jostep);
}
.jo-step h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.jo-step p { margin: 0; font-size: 13px; line-height: 1.6; color: #6b7280; }

.jo-faq details {
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    overflow: hidden;
}
.jo-faq summary {
    padding: 13px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
    color: #374151;
}
.jo-faq summary::-webkit-details-marker { display: none; }
.jo-faq details[open] summary {
    color: var(--jo-orange);
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}
.jo-faq p {
    margin: 0;
    padding: 12px 16px 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #6b7280;
    background: #fff;
}

/* ---------- 侧栏下载（修复错位） ---------- */
.jo-side {
    position: sticky;
    top: 84px;
    min-width: 0;
    max-width: 320px;
}
.jo-dl-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 32px rgba(31, 35, 41, .08);
}
.jo-dl-head {
    padding: 20px 20px 16px;
    text-align: center;
    background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    border-bottom: 1px solid #f0f2f5;
}
.jo-dl-head > .layui-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--jo-orange), #ff9555);
    color: #fff;
    font-size: 24px;
    font-family: layui-icon !important;
    box-shadow: 0 6px 16px rgba(255, 122, 56, .35);
}
.jo-dl-head > .layui-icon:before {
    font-family: layui-icon !important;
    line-height: 48px;
}
.jo-dl-head h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}
.jo-dl-head p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.jo-dl-meta {
    margin: 0;
    padding: 12px 20px;
    list-style: none;
}
.jo-dl-meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px dashed #eef0f4;
}
.jo-dl-meta li:last-child { border-bottom: 0; }
.jo-dl-meta span { color: #8f959e; flex-shrink: 0; }
.jo-dl-meta b {
    color: #1f2329;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.jo-dl-actions {
    box-sizing: border-box;
    width: 100%;
    padding: 4px 20px 18px;
}
.jo-dl-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 13px 14px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--jo-orange), #ff8f4a);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 6px 18px rgba(255, 122, 56, .32);
    transition: transform .15s, box-shadow .15s;
}
.jo-dl-btn + .jo-dl-btn { margin-top: 10px; }
.jo-dl-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 122, 56, .4);
}
.jo-dl-btn .layui-icon { font-size: 18px; flex-shrink: 0; }
.jo-dl-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jo-dl-note {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 11px;
    line-height: 1.55;
    color: #9ca3af;
    text-align: center;
}

.jo-side-more {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8eaef;
}
.jo-side-more h4 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: .04em;
}
.jo-side-link {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    font-size: 13px;
    color: #374151 !important;
    margin-bottom: 8px;
    transition: border-color .15s, background .15s;
}
.jo-side-link:last-child { margin-bottom: 0; }
.jo-side-link span {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    white-space: normal;
    word-break: break-all;
}
.jo-side-link .layui-icon {
    font-size: 12px;
    color: #cbd5e1;
    flex-shrink: 0;
    margin-top: 3px;
}
.jo-side-link:hover {
    border-color: #ffd4b8;
    background: #fff8f4;
    color: var(--jo-orange) !important;
}

@media (max-width: 1100px) {
    .jo-hero-in { grid-template-columns: 1fr; }
    .jo-shot { max-width: 520px; }
    .jo-wrap { grid-template-columns: 1fr; }
    .jo-side {
        position: static;
        max-width: none;
    }
}
@media (max-width: 640px) {
    .jo-sec { padding: 18px 16px; }
}
