/* 九狸显卡优化大师 — 独立详情页（浅色 · 与全站工具页一致） */

body.jg-page {
    --jg-bg: #eef1f5;
    --jg-card: #fff;
    --jg-text: #1f2329;
    --jg-muted: #646a73;
    --jg-line: #e5e8ef;
    --jg-c: #4f46e5;
    --jg-c2: #6366f1;
    --jg-soft: #eef2ff;
    background: var(--jg-bg);
    color: var(--jg-text);
    -webkit-font-smoothing: antialiased;
}

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

.jg-crumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid var(--jg-line);
    font-size: 13px;
    color: #8f959e;
}
.jg-crumb a { color: #646a73; }
.jg-crumb a:hover { color: var(--jg-c); }
.jg-crumb .layui-icon { font-size: 11px; color: #cfd5de; padding: 0 3px; }
.jg-crumb em { font-style: normal; font-weight: 600; color: var(--jg-text); }

.jg-hero {
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8f7ff 50%, var(--jg-bg) 100%);
    padding: 36px 0 44px;
    border-bottom: 1px solid var(--jg-line);
}
.jg-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: 36px;
    align-items: center;
}
.jg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--jg-soft);
    border: 1px solid #c7d2fe;
    color: var(--jg-c);
    font-size: 12px;
    font-weight: 700;
}
.jg-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--jg-text);
}
.jg-ver {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f5f8;
    font-size: 12px;
    font-weight: 700;
    color: var(--jg-muted);
    vertical-align: middle;
}
.jg-lead {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--jg-muted);
    max-width: 520px;
}
.jg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jg-tags span {
    padding: 5px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--jg-line);
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.jg-shot {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dde3ec;
    box-shadow: 0 20px 50px rgba(31, 35, 41, .12);
    line-height: 0;
    background: #fff;
}
.jg-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.jg-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 28px;
    padding: 28px 0 56px;
    align-items: start;
}
.jg-sec {
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 14px;
    background: var(--jg-card);
    border: 1px solid var(--jg-line);
    box-shadow: 0 4px 16px rgba(31, 35, 41, .04);
}
.jg-sec-h {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--jg-text);
}
.jg-sec-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--jg-muted);
    line-height: 1.6;
}
.jg-core {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fafaff 0%, #fff 100%);
}

.jg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.jg-feat {
    padding: 16px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
}
.jg-feat.is-hl {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
    border-color: #c7d2fe;
}
.jg-feat h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--jg-text);
}
.jg-feat p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--jg-muted);
}
.jg-feat code {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #eef2ff;
    color: #4338ca;
}

.jg-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.jg-gallery figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--jg-line);
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 35, 41, .06);
}
.jg-gallery figcaption {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--jg-muted);
    border-top: 1px solid var(--jg-line);
    background: #fafbfc;
}
.jg-gallery img { width: 100%; display: block; height: auto; }

.jg-list {
    margin: 0;
    padding-left: 1.15em;
    font-size: 13px;
    line-height: 1.75;
    color: var(--jg-muted);
}
.jg-list li { margin: 8px 0; }
.jg-list strong { color: var(--jg-text); font-weight: 600; }
.jg-list code {
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3f4f6;
}

.jg-warn {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    line-height: 1.65;
    color: #92400e;
}
.jg-warn .layui-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    color: #d97706;
    font-size: 20px;
}

.jg-steps { display: flex; flex-direction: column; gap: 12px; }
.jg-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
}
.jg-step-no {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jg-c), var(--jg-c2));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jg-step h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.jg-step p { margin: 0; font-size: 13px; color: var(--jg-muted); line-height: 1.65; }
.jg-step code {
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #eef2ff;
}

.jg-faq details {
    border-bottom: 1px solid #eef0f4;
    padding: 12px 0;
}
.jg-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--jg-text);
}
.jg-faq p {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--jg-muted);
    line-height: 1.65;
}

.jg-side {
    position: sticky;
    top: 16px;
    min-width: 0;
}
.jg-dl-card {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--jg-line);
    box-shadow: 0 8px 28px rgba(79, 70, 229, .08);
    box-sizing: border-box;
}
.jg-dl-head {
    padding: 20px 20px 14px;
    text-align: center;
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
    border-bottom: 1px solid #f0f2f5;
}
.jg-dl-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--jg-c), #818cf8);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.jg-dl-head h3 { margin: 0 0 4px; font-size: 17px; color: var(--jg-text); }
.jg-dl-head p { margin: 0; font-size: 12px; color: var(--jg-muted); }
.jg-dl-meta {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    font-size: 13px;
}
.jg-dl-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #eef0f4;
}
.jg-dl-meta li:last-child { border-bottom: 0; }
.jg-dl-meta span { color: var(--jg-muted); flex-shrink: 0; }
.jg-dl-meta b { font-weight: 700; color: var(--jg-text); text-align: right; }
.jg-dl-actions {
    padding: 4px 20px 18px;
    box-sizing: border-box;
}
.jg-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--jg-c), var(--jg-c2));
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .25);
    transition: filter 0.15s, transform 0.15s;
}
.jg-dl-btn:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff !important; }
.jg-dl-btn .layui-icon { font-size: 18px; }
.jg-dl-note {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 11px;
    line-height: 1.55;
    color: #8f959e;
    text-align: center;
    word-break: break-all;
}
.jg-side-more {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jg-line);
}
.jg-side-more h4 { margin: 0 0 10px; font-size: 13px; color: var(--jg-muted); }
.jg-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f4;
    font-size: 13px;
    color: #374151;
}
.jg-side-link:last-child { border-bottom: none; }
.jg-side-link span {
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.4;
}
.jg-side-link:hover { color: var(--jg-c); }

@media (max-width: 960px) {
    .jg-hero-in,
    .jg-wrap { grid-template-columns: 1fr; }
    .jg-grid { grid-template-columns: 1fr; }
    .jg-gallery { grid-template-columns: 1fr; }
    .jg-side { position: static; }
}
