/* ==================================================================
   爱思助手 常见问题 —— 列表页 + 文章页样式
   设计对齐 i4.cn：1260px 容器 / #007AFF 主色 / 8-10px 圆角
   ================================================================== */

* { margin: 0; padding: 0; }

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: #236ee7; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; max-width: 100%; }
ul, ol { list-style: none; }
code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #c7254e;
    word-break: break-all;
}

.wrap { width: 1260px; margin: 0 auto; }

.hide {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip_link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #007aff;
    color: #fff;
    padding: 10px 18px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}
.skip_link:focus { left: 0; text-decoration: none; }

/* ---------------- 顶部条 ---------------- */
.top {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
}
.top__inner {
    width: 1260px;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.top__logo { display: flex; align-items: center; margin-right: 28px; }
.top__logo img { display: block; }
.top__tit {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 14px;
}
.top__nav { margin-left: auto; display: flex; align-items: center; }
.top__nav a {
    font-size: 14px;
    color: #333;
    margin-left: 30px;
}
.top__nav a:hover { color: #007aff; text-decoration: none; }
.top__nav a.current { color: #007aff; font-weight: 700; }

/* ---------------- 面包屑 ---------------- */
.crumb {
    font-size: 12px;
    line-height: 30px;
    color: #666;
    padding-top: 90px;
}
.crumb a { color: #666; }
.crumb a:hover { color: #007aff; }
.crumb .divider { color: #bbb; margin: 0 8px; }
.crumb .active { font-weight: 700; color: #333; }

/* ---------------- 列表页头部 ---------------- */
.hero {
    background: rgba(0, 122, 255, 0.05);
    border-radius: 10px;
    padding: 38px 40px;
    margin-top: 16px;
}
.hero__tit {
    font-size: 26px;
    line-height: 36px;
    color: #333;
}
.hero__desc {
    font-size: 14px;
    line-height: 24px;
    color: #666;
    margin-top: 12px;
    max-width: 900px;
}
.hero__stat {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* 搜索 */
.search { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; }
.search__input {
    width: 460px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.search__input:focus { border-color: #007aff; }
.search__btn {
    height: 42px;
    padding: 0 26px;
    margin-left: 12px;
    border: 0;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.search__btn:hover { background: #0069d9; }
.search__count { font-size: 13px; color: #666; margin-left: 16px; }

/* ---------------- 主体两栏 ---------------- */
.main {
    display: flex;
    align-items: flex-start;
    padding: 40px 0 70px;
}

.side {
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 90px;
    margin-right: 40px;
}
.side__tit {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    padding: 0 0 14px 12px;
}
.side__nav a {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all .2s;
}
.side__nav a:hover { background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.side__nav a.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    font-weight: 700;
}
.side__num {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 2px 9px;
}
.side__nav a.active .side__num { background: rgba(0, 122, 255, 0.15); color: #007aff; }

.content { flex: 1; min-width: 0; }

/* ---------------- 分组标题 ---------------- */
.group { margin-bottom: 40px; }
.group__tit {
    font-size: 18px;
    color: #333;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}
.group__tit em {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-left: 12px;
}

/* ---------------- 问答手风琴 ---------------- */
.qa { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }

.qa__q {
    display: flex;
    align-items: flex-start;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    padding: 20px 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    line-height: 24px;
    color: #333;
    transition: color .2s;
}
.qa__q:hover { color: #007aff; }
.qa__idx {
    flex: 0 0 26px;
    font-size: 13px;
    color: #bbb;
    line-height: 24px;
}
.qa__qtext { flex: 1; font-weight: 700; }
.qa__arrow {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    margin-top: 4px;
    position: relative;
    transition: transform .25s;
}
.qa__arrow::before {
    content: "";
    position: absolute;
    left: 3px; top: 4px;
    width: 7px; height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
}
.qa.open .qa__arrow { transform: rotate(180deg); }
.qa.open .qa__qtext { color: #007aff; }

.qa__body {
    display: none;
    padding: 0 8px 24px 34px;
}
.qa.open .qa__body { display: block; }

.qa__summary {
    font-size: 14px;
    line-height: 26px;
    color: #555;
}
.qa__summary strong { color: #333; }

.qa__points {
    margin-top: 14px;
    background: rgba(0, 122, 255, 0.04);
    border-radius: 8px;
    padding: 14px 18px;
}
.qa__points li {
    font-size: 13px;
    line-height: 24px;
    color: #555;
    padding-left: 16px;
    position: relative;
}
.qa__points li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #007aff;
    opacity: .5;
}

.qa__foot {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.qa__more {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.12);
    color: #236ee7;
    font-size: 13px;
}
.qa__more:hover { background: rgba(0, 122, 255, 0.2); text-decoration: none; }

/* 发布时间 / 访问量（对齐官方详情页样式） */
.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #9aa0a8;
    font-size: 13px;
}
.meta__item { display: flex; align-items: center; margin-left: 22px; }
.meta__item img { width: 16px; height: 16px; margin-right: 6px; opacity: .55; }
.qa__foot .meta { margin-left: auto; }

.empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ---------------- 文章页 ---------------- */
.art_wrap {
    display: flex;
    align-items: flex-start;
    padding: 10px 0 70px;
}
.art { flex: 1; min-width: 0; max-width: 860px; }

.art__hd { padding-bottom: 22px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.art__cat {
    display: inline-block;
    font-size: 12px;
    color: #236ee7;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    padding: 4px 12px;
}
.art__cat:hover { text-decoration: none; background: rgba(0, 122, 255, 0.18); }
.art__tit {
    font-size: 28px;
    line-height: 42px;
    color: #333;
    margin: 16px 0 18px;
}
.art__info { color: #9aa0a8; font-size: 13px; }
.art__info .meta__item:first-child { margin-left: 0; }

.art__lead {
    font-size: 15px;
    line-height: 28px;
    color: #555;
    background: rgba(0, 122, 255, 0.04);
    border-left: 3px solid #007aff;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 26px 0 10px;
}
.art__lead strong { color: #333; }

.art__body { font-size: 15px; line-height: 30px; color: #444; }
.art__body h2 {
    font-size: 20px;
    line-height: 30px;
    color: #333;
    margin: 38px 0 16px;
    padding-left: 14px;
    border-left: 4px solid #007aff;
}
.art__body h3 {
    font-size: 16px;
    line-height: 26px;
    color: #333;
    margin: 26px 0 12px;
}
.art__body p { margin: 14px 0; }
.art__body strong { color: #222; }
.art__body ul, .art__body ol { margin: 14px 0; padding-left: 4px; }
.art__body ul li, .art__body ol li {
    position: relative;
    padding-left: 24px;
    margin: 10px 0;
}
.art__body ul li::before {
    content: "";
    position: absolute;
    left: 6px; top: 13px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #007aff;
    opacity: .55;
}
.art__body ol { counter-reset: li; }
.art__body ol li { counter-increment: li; }
.art__body ol li::before {
    content: counter(li);
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.12);
    color: #236ee7;
}

/* 配图 */
.figure {
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}
.figure figcaption {
    font-size: 12px;
    line-height: 20px;
    color: #999;
    margin-top: 12px;
}

/* 提示框 */
.note {
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 26px;
    color: #555;
}
.note--warn { background: rgba(255, 149, 0, 0.08); }
.note strong { color: #333; }

/* 表格 */
.tbl_wrap { overflow-x: auto; margin: 22px 0; }
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tbl th, .tbl td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    line-height: 24px;
    text-align: left;
    vertical-align: top;
}
.tbl th { background: rgba(0, 122, 255, 0.06); font-weight: 700; color: #333; }
.tbl tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.015); }

.unverified {
    font-size: 12px;
    color: #b06000;
    background: rgba(255, 149, 0, 0.12);
    border-radius: 4px;
    padding: 1px 7px;
    margin: 0 2px;
    white-space: nowrap;
}

/* 合并来源提示 */
.merged {
    margin: 30px 0 0;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 24px;
    color: #777;
}
.merged__tit { font-weight: 700; color: #555; margin-bottom: 6px; }
.merged li { padding-left: 14px; position: relative; }
.merged li::before {
    content: "";
    position: absolute;
    left: 0; top: 11px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #bbb;
}

/* 来源 / 相关 / 上下篇 */
.sources { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.sources__tit, .related__tit { font-size: 16px; color: #333; margin-bottom: 14px; }
.sources ol { counter-reset: s; }
.sources li {
    counter-increment: s;
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    line-height: 24px;
    color: #666;
    margin: 10px 0;
}
.sources li::before {
    content: "[" counter(s) "]";
    position: absolute;
    left: 0; top: 0;
    color: #aaa;
    font-size: 12px;
}

.related { margin-top: 40px; }
.related__list { display: flex; flex-wrap: wrap; }
.related__item {
    width: calc(50% - 20px);
    box-sizing: border-box;
    margin: 0 20px 12px 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    font-size: 13px;
    line-height: 22px;
    color: #444;
}
.related__item:hover { background: rgba(0, 122, 255, 0.07); color: #236ee7; text-decoration: none; }

.pager {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 13px;
}
.pager a, .pager span {
    max-width: 45%;
    color: #666;
    line-height: 22px;
}
.pager a:hover { color: #007aff; text-decoration: none; }
.pager span { color: #bbb; }

/* 目录 */
.toc {
    width: 220px;
    flex: 0 0 220px;
    margin-left: 40px;
    position: sticky;
    top: 90px;
}
.toc__tit { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 12px; }
.toc__nav a {
    display: block;
    font-size: 13px;
    line-height: 20px;
    color: #888;
    padding: 8px 12px;
    border-left: 2px solid rgba(0, 0, 0, 0.07);
    transition: all .2s;
}
.toc__nav a:hover { color: #007aff; text-decoration: none; }
.toc__nav a.active {
    color: #007aff;
    border-left-color: #007aff;
    background: rgba(0, 122, 255, 0.04);
}

/* ---------------- 页脚 ---------------- */
.ft {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 30px 0 50px;
    font-size: 12px;
    line-height: 24px;
    color: #999;
}
.ft a { color: #999; }
.ft p { max-width: 1000px; }

/* ---------------- 分页控件 ---------------- */
.pager2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 30px 0 8px;
}
.pg__b {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e0e2e6;
    background: #fff;
    border-radius: 8px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.pg__b:hover:not([disabled]):not(.cur) { border-color: #007aff; color: #007aff; }
.pg__b.cur {
    background: #007aff;
    border-color: #007aff;
    color: #fff;
    font-weight: 700;
    cursor: default;
}
.pg__b[disabled] { opacity: .4; cursor: not-allowed; }
.pg__dot { color: #bbb; padding: 0 2px; }
.pg__info { margin-left: 8px; font-size: 13px; color: #999; }

/* ---------------- 响应式 ---------------- */
@media screen and (max-width: 1300px) {
    .wrap { width: 100%; padding: 0 20px; box-sizing: border-box; }
    .top__inner { width: 100%; }
}
@media screen and (max-width: 1000px) {
    .toc { display: none; }
    .main { display: block; }
    .side {
        width: auto; flex: none;
        position: static;
        margin: 0 0 26px;
    }
    .side__nav { display: flex; flex-wrap: wrap; }
    .side__nav a { margin: 0 8px 8px 0; height: 36px; }
    .related__item { width: 100%; margin-right: 0; }
    .search__input { width: 100%; }
    .search__btn { margin: 10px 0 0; }
}
@media screen and (max-width: 700px) {
    .hero { padding: 24px 20px; }
    .hero__tit { font-size: 21px; line-height: 30px; }
    .art__tit { font-size: 22px; line-height: 34px; }
    .qa__foot { display: block; }
    .qa__foot .meta { margin: 12px 0 0; }
    .meta__item:first-child { margin-left: 0; }
    .top__tit { display: none; }
    .pager2 { gap: 6px; }
    .pg__b { min-width: 34px; height: 34px; padding: 0 8px; }
    .pg__info { width: 100%; margin: 6px 0 0; }
}
