/* ===========================================================
   woxapp.cn 文章排版系统 (article.css)
   统一 33 篇文章的版式：导语 / 目录 / 正文 / 表格 / 提示框 / FAQ
   仅作用于 .art-* 命名空间，不影响首页与栏目页
   =========================================================== */

.art-section {
    background: #F5F5FA;
    padding: 3rem 0 5rem;
}

.art-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.art-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 56px 60px 48px;
    box-shadow: 0 4px 24px rgba(30, 30, 47, .06);
    border: 1px solid #EDEDF4;
    text-align: left;
}

/* ---------- 文章头部 ---------- */
.art-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #7C4DFF;
    background: rgba(124, 77, 255, .1);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.art-card h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.38;
    color: #1E1E2F;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.art-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #6B6B7B;
    margin: 0 0 22px;
    padding-left: 15px;
    border-left: 3px solid #DDD6FF;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: .86rem;
    color: #8A8A9A;
    padding-bottom: 26px;
    border-bottom: 1px solid #EFEFF5;
    margin-bottom: 30px;
}

.art-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.art-meta i {
    color: #7C4DFF;
    font-size: .84rem;
}

/* ---------- 主图 ---------- */
.art-hero {
    margin: 0 0 34px;
}

.art-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: #F0EEF9;
}

.art-hero figcaption {
    font-size: .84rem;
    color: #9090A0;
    text-align: center;
    margin-top: .65em;
    line-height: 1.6;
}

/* ---------- 目录 ---------- */
.art-toc {
    background: #F8F6FF;
    border: 1px solid #ECE6FF;
    border-radius: 14px;
    padding: 20px 24px 18px;
    margin: 0 0 38px;
}

.art-toc-title {
    font-size: .92rem;
    font-weight: 700;
    color: #7C4DFF;
    margin-bottom: 12px;
}

.art-toc-title i {
    margin-right: 7px;
}

.art-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 32px;
    counter-reset: toc;
}

.art-toc li {
    counter-increment: toc;
    break-inside: avoid;
    margin: 0 0 9px;
    font-size: .93rem;
    line-height: 1.6;
}

.art-toc li::before {
    content: counter(toc) ". ";
    color: #B47CFF;
    font-weight: 700;
}

.art-toc a {
    color: #40405A;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all .18s ease;
}

.art-toc a:hover {
    color: #7C4DFF;
    border-bottom-color: #C9B8FF;
}

/* ---------- 正文层级 ---------- */
.art-body {
    font-size: 1.02rem;
    color: #3A3A4A;
    text-align: left;
}

.art-body h2 {
    position: relative;
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1E1E2F;
    margin: 2.7rem 0 1rem;
    padding-left: 15px;
    scroll-margin-top: 90px;
}

.art-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: linear-gradient(180deg, #7C4DFF, #B47CFF);
}

.art-body h2:first-child {
    margin-top: 0;
}

.art-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D2D3A;
    margin: 1.8rem 0 .65rem;
    scroll-margin-top: 90px;
}

.art-body p {
    margin: 0 0 1.15em;
    line-height: 1.95;
    text-align: left;
}

.art-body strong {
    color: #1E1E2F;
    font-weight: 700;
}

.art-body em {
    font-style: normal;
    color: #5B32D6;
    background: linear-gradient(transparent 62%, #EBE4FF 62%);
    padding: 0 1px;
}

.art-body ul,
.art-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
    line-height: 1.95;
}

.art-body li {
    margin-bottom: .5em;
    text-align: left;
}

.art-body ul > li::marker {
    color: #7C4DFF;
}

.art-body ol > li::marker {
    color: #7C4DFF;
    font-weight: 700;
}

.art-body a {
    color: #651FFF;
    text-decoration: none;
    border-bottom: 1px solid #D5C8FF;
    transition: all .18s ease;
}

.art-body a:hover {
    color: #4A12CC;
    border-bottom-color: #7C4DFF;
}

/* 行内代码 / 快捷键 */
.art-body code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .89em;
    background: #F4F1FF;
    color: #5B32D6;
    padding: .1em .42em;
    border-radius: 5px;
    border: 1px solid #E9E2FF;
    white-space: nowrap;
}

/* ---------- 表格 ---------- */
.art-body table {
    width: 100%;
    border-collapse: collapse;
    margin: .4em 0 1.7em;
    font-size: .94rem;
    border: 1px solid #E6E6EF;
    border-radius: 10px;
    overflow: hidden;
}

.art-body thead th {
    background: #F7F5FF;
    color: #1E1E2F;
    font-weight: 700;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid #E1DBFA;
    white-space: nowrap;
}

.art-body td {
    padding: 11px 14px;
    border-bottom: 1px solid #F0F0F5;
    line-height: 1.75;
    vertical-align: top;
    text-align: left;
}

.art-body tbody tr:last-child td {
    border-bottom: none;
}

.art-body tbody tr:nth-child(even) td {
    background: #FCFCFE;
}

/* ---------- 提示框 ---------- */
.art-note {
    display: block;
    padding: 15px 18px;
    border-radius: 11px;
    border-left: 4px solid #7C4DFF;
    background: #F8F6FF;
    margin: 1.5em 0;
    font-size: .97rem;
    line-height: 1.85;
    color: #3A3A4A;
}

.art-note strong:first-child {
    display: block;
    margin-bottom: 4px;
    color: #5B32D6;
}

.art-note.is-tip {
    border-left-color: #00BFA5;
    background: #F0FBF9;
}

.art-note.is-tip strong:first-child {
    color: #00897B;
}

.art-note.is-warn {
    border-left-color: #FF6E40;
    background: #FFF6F2;
}

.art-note.is-warn strong:first-child {
    color: #D84315;
}

/* ---------- 图（正文内） ---------- */
.art-body figure {
    margin: 1.9em 0;
}

.art-body figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #F5F3FC;
}

.art-body figure figcaption {
    font-size: .84rem;
    color: #9090A0;
    text-align: center;
    margin-top: .65em;
    line-height: 1.6;
}

/* ---------- 清单 ---------- */
.check-list {
    list-style: none;
    padding-left: 0 !important;
    margin: 0 0 1.4em;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: .62em !important;
    line-height: 1.85;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: .12em;
    width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    color: #FFFFFF;
    background: #00BFA5;
    border-radius: 50%;
}

/* ---------- FAQ ---------- */
.art-faq {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid #EFEFF5;
    text-align: left;
}

.art-faq h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E1E2F;
    margin: 0 0 18px;
}

.art-faq details {
    border: 1px solid #E9E9F1;
    border-radius: 12px;
    margin-bottom: 11px;
    background: #FFFFFF;
    transition: all .18s ease;
}

.art-faq details[open] {
    background: #FBFAFF;
    border-color: #DDD3FF;
}

.art-faq summary {
    padding: 15px 20px;
    font-size: .99rem;
    font-weight: 600;
    color: #2D2D3A;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.art-faq summary::-webkit-details-marker {
    display: none;
}

.art-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.15rem;
    font-weight: 400;
    color: #7C4DFF;
    line-height: 1.4;
}

.art-faq details[open] summary::after {
    content: "\2212";
}

.art-faq details p {
    margin: 0;
    padding: 0 20px 17px;
    font-size: .95rem;
    line-height: 1.9;
    color: #55556A;
}

/* ---------- 相关阅读 ---------- */
.art-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #EFEFF5;
    text-align: left;
}

.art-related h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E1E2F;
    margin: 0 0 16px;
}

.art-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.art-related li {
    margin: 0;
}

.art-related a {
    display: block;
    padding: 14px 16px;
    background: #F8F7FC;
    border: 1px solid #EDEBF5;
    border-radius: 11px;
    color: #33334A;
    font-size: .93rem;
    line-height: 1.65;
    text-decoration: none;
    transition: all .18s ease;
}

.art-related a:hover {
    background: #F3EFFF;
    border-color: #D8CBFF;
    color: #5B32D6;
    transform: translateY(-1px);
}

/* ---------- 回到顶部 ---------- */
.art-top {
    text-align: center;
    margin-top: 34px;
}

.art-top a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: #8A8A9A;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #E5E5EE;
    transition: all .18s ease;
}

.art-top a:hover {
    color: #7C4DFF;
    border-color: #D3C4FF;
    background: #FAF8FF;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .art-section {
        padding: 1.6rem 0 3rem;
    }

    .art-wrap {
        padding: 0 14px;
    }

    .art-card {
        padding: 30px 20px 26px;
        border-radius: 16px;
    }

    .art-card h1 {
        font-size: 1.5rem;
        line-height: 1.45;
    }

    .art-lead {
        font-size: .98rem;
        padding-left: 12px;
    }

    .art-meta {
        font-size: .8rem;
        gap: 6px 16px;
        padding-bottom: 20px;
        margin-bottom: 24px;
    }

    .art-toc {
        padding: 16px 18px 14px;
        margin-bottom: 28px;
    }

    .art-toc ol {
        columns: 1;
    }

    .art-body {
        font-size: 1rem;
    }

    .art-body h2 {
        font-size: 1.2rem;
        margin-top: 2.1rem;
    }

    .art-body h3 {
        font-size: 1.05rem;
    }

    .art-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: .88rem;
    }

    .art-body code {
        white-space: normal;
        word-break: break-word;
    }

    .art-hero figcaption,
    .art-body figure figcaption {
        font-size: .78rem;
    }
}

/* ===========================================================
   资讯列表页 (news.html)
   =========================================================== */
.idx-section {
    background: #F5F5FA;
    padding: 3.5rem 0 5rem;
}

.idx-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.idx-head {
    text-align: center;
    margin-bottom: 42px;
}

.idx-head h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1E1E2F;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}

.idx-head p {
    font-size: 1rem;
    color: #7A7A8C;
    line-height: 1.8;
    margin: 0;
}

.idx-group {
    margin-bottom: 38px;
}

.idx-group h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    font-weight: 700;
    color: #2D2D3A;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E6E6EF;
}

.idx-group h2 span {
    font-size: .78rem;
    font-weight: 600;
    color: #9A9AAC;
}

.idx-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.idx-card {
    background: #FFFFFF;
    border: 1px solid #EAEAF2;
    border-radius: 14px;
    transition: all .18s ease;
}

.idx-card:hover {
    border-color: #D3C4FF;
    box-shadow: 0 6px 20px rgba(124, 77, 255, .10);
    transform: translateY(-2px);
}

.idx-card a {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
}

.idx-kicker {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #7C4DFF;
    background: rgba(124, 77, 255, .09);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 9px;
}

.idx-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1E1E2F;
    margin-bottom: 8px;
}

.idx-card:hover .idx-title {
    color: #5B32D6;
}

.idx-desc {
    display: block;
    font-size: .875rem;
    line-height: 1.72;
    color: #7A7A8C;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .idx-section {
        padding: 2rem 0 3rem;
    }

    .idx-wrap {
        padding: 0 14px;
    }

    .idx-head h1 {
        font-size: 1.55rem;
    }

    .idx-list {
        grid-template-columns: 1fr;
    }
}
