/* ==========================================================================
   seobole.com 文章详情页样式（重设计版）
   主色：#1296db（沿用站点蓝）  文字：#1a1a1a / #666  背景：#fff / #f7f8fa
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.arc-crumb {
    padding: 12px 0 10px;
    font-size: 13px;
    color: #999;
}
.arc-crumb a {
    color: #999;
    transition: color .2s;
}
.arc-crumb a:hover {
    color: #1296db;
}
.arc-crumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ---------- 正文主体卡片 ---------- */
.arc-main {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 30px 36px 26px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

/* ---------- 标题 ---------- */
.arc-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    letter-spacing: .2px;
    margin-bottom: 16px;
}

/* ---------- 元信息栏 ---------- */
.arc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-radius: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 26px;
}
.arc-meta .meta-item {
    display: inline-flex;
    align-items: center;
}
.arc-meta .meta-item em {
    font-style: normal;
    color: #1296db;
    font-weight: 600;
    margin-left: 3px;
}
.arc-meta .meta-src a {
    color: #1296db;
}
.arc-meta .meta-src a:hover {
    text-decoration: underline;
}

/* 小图标（纯 CSS，避免额外资源） */
.arc-meta i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .55;
}
.mi-cal {
    background: linear-gradient(#1296db, #1296db) center / 100% 1.5px no-repeat,
                linear-gradient(#1296db, #1296db) left top / 1.5px 100% no-repeat,
                linear-gradient(#1296db, #1296db) right top / 1.5px 100% no-repeat,
                linear-gradient(#1296db, #1296db) left bottom / 100% 1.5px no-repeat,
                linear-gradient(#1296db, #1296db) right bottom / 1.5px 100% no-repeat;
}
.mi-eye {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at center, #1296db 0 28%, transparent 30%),
                radial-gradient(ellipse at center, transparent 45%, #1296db 47% 100%);
}
.mi-tag {
    background: linear-gradient(#1296db, #1296db) center / 100% 1.5px no-repeat;
    position: relative;
}

/* ---------- 正文排版 ---------- */
.arc-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
    word-wrap: break-word;
}
.arc-content p {
    margin: 0 0 18px;
}
.arc-content h2 {
    position: relative;
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 32px 0 14px;
    padding-left: 13px;
}
.arc-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #1296db;
}
.arc-content h3 {
    position: relative;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 26px 0 12px;
    padding-left: 13px;
}
.arc-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: #9cc9e6;
}
.arc-content strong {
    color: #1a1a1a;
    font-weight: 600;
}
.arc-content a {
    color: #1296db;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.arc-content a:hover {
    color: #0d7fbb;
}
.arc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 18px auto;
}
.arc-content ul,
.arc-content ol {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px 20px 16px 36px;
    margin: 18px 0;
    list-style: none;
}
.arc-content ul li {
    position: relative;
    margin: 8px 0;
    line-height: 1.8;
}
.arc-content ul li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1296db;
    opacity: .6;
}
.arc-content ol {
    counter-reset: arc-ol;
}
.arc-content ol li {
    position: relative;
    margin: 8px 0;
    line-height: 1.8;
    counter-increment: arc-ol;
}
.arc-content ol li::before {
    content: counter(arc-ol);
    position: absolute;
    left: -24px;
    top: 4px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: #1296db;
    border-radius: 50%;
}
.arc-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    background: #f7f8fa;
    border-left: 3px solid #1296db;
    border-radius: 0 6px 6px 0;
    color: #555;
}
.arc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}
.arc-content table th,
.arc-content table td {
    border: 1px solid #ececec;
    padding: 9px 12px;
    text-align: left;
}
.arc-content table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---------- 版权声明 ---------- */
.arc-copyright {
    margin-top: 30px;
    padding: 14px 18px;
    background: #f7f8fa;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.8;
    color: #999;
}
.arc-copyright strong {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-size: 13px;
}
.arc-copyright p {
    margin: 2px 0;
    word-break: break-all;
}
.arc-copyright a {
    color: #999;
    text-decoration: underline;
}
.arc-copyright a:hover {
    color: #1296db;
}

/* ---------- 上下篇 ---------- */
.arc-nav {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}
.arc-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-width: 0;
}
.arc-nav-item:hover {
    border-color: #1296db;
    box-shadow: 0 3px 10px rgba(18, 150, 219, .1);
    transform: translateY(-2px);
}
.arc-nav-item.next {
    text-align: right;
}
.arc-nav-item .nav-label {
    font-size: 12px;
    color: #1296db;
    margin-bottom: 5px;
}
.arc-nav-item .nav-title {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 相关阅读 ---------- */
.arc-related {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 20px 24px 22px;
}
.sec-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding-left: 12px;
    margin-bottom: 14px;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: #1296db;
}
.rel-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}
.rel-list li {
    width: 50%;
    box-sizing: border-box;
    padding: 0 8px;
    margin-bottom: 4px;
}
.rel-list li a {
    display: flex;
    align-items: flex-start;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    transition: background .2s, color .2s;
}
.rel-list li a:hover {
    background: #f2f9fe;
    color: #1296db;
}
.rel-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: 8px 9px 0 0;
    border-radius: 50%;
    background: #1296db;
    opacity: .5;
}
.rel-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 右侧栏通用 ---------- */
.side-box {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.side-title {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 14px 16px 12px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.side-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}

/* ---------- 目录 ---------- */
.toc-list {
    padding: 8px 6px 12px;
    max-height: 460px;
    overflow-y: auto;
}
.toc-list li {
    margin: 1px 0;
}
.toc-list li a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.toc-list li a:hover {
    background: #f2f9fe;
    color: #1296db;
}
.toc-list li.active a {
    background: #f2f9fe;
    color: #1296db;
    border-left-color: #1296db;
    font-weight: 600;
}

/* ---------- 推荐阅读列表 ---------- */
.side-list {
    padding: 8px 6px 12px;
}
.side-list li {
    margin: 1px 0;
}
.side-list li a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    border-radius: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: background .2s, color .2s;
}
.side-list li a:hover {
    background: #f2f9fe;
    color: #1296db;
}

/* ---------- 滚动条美化（目录） ---------- */
.toc-list::-webkit-scrollbar {
    width: 5px;
}
.toc-list::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 3px;
}
.toc-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
    .container { width: 100%; padding: 0 10px; box-sizing: border-box; }
    .main-left { width: 68%; }
    .main-right { width: 30%; }
}
@media screen and (max-width: 760px) {
    .main-left,
    .main-right {
        width: 100%;
        float: none;
    }
    .main-right { margin-top: 14px; }
    .arc-main { padding: 20px 18px 18px; }
    .arc-title { font-size: 21px; }
    .arc-content { font-size: 16px; line-height: 1.85; }
    .arc-meta { gap: 10px 14px; font-size: 12px; padding: 10px 12px; }
    .arc-nav { flex-direction: column; }
    .arc-nav-item.next { text-align: left; }
    .rel-list li { width: 100%; }
    .side-toc { display: none; }   /* 移动端隐藏目录，避免占屏 */
}

/* ---------- 两栏间距修复（覆盖旧宽度） ---------- */
.main-left {
    width: 778px;          /* 原 798 → 让出 20px 间隙 */
}
.main-right {
    width: 302px;
}
/* 右侧栏与左侧的间距 */
.main-right {
    margin-left: 20px;
}
@media screen and (max-width: 1200px) {
    .main-left  { width: calc(100% - 320px); }
    .main-right { width: 300px; margin-left: 20px; }
}
@media screen and (max-width: 760px) {
    .main-left,
    .main-right {
        width: 100%;
        margin-left: 0;
    }
    .main-right { margin-top: 14px; }
}
