@charset "utf-8";

/* 案例详情共用：沿用 website-to-inquiry.html 的正文卡片与侧栏目录。
   主体布局、标题和正文基础样式见 global.css 中的 mk-article 组件。 */
.case-article-main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

.case-article-main .mk-breadcrumb > [aria-current] {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.case-article-main .ig-header h1,
.case-article-header h1 {
    text-wrap: balance;
}

.case-article-main .ig-header h1 br,
.case-article-header h1 br {
    display: none;
}

.case-article-main .mk-article {
    min-width: 0;
}

#marketing-main .case-reader > p,
#marketing-main .case-reader section p {
    color: #526579;
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: break-word;
}

#marketing-main .case-reader p + p {
    margin-top: 14px;
}

#marketing-main .case-reader h3 {
    margin: 26px 0 10px;
    color: #123a63;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

#marketing-main .case-reader strong {
    color: #244360;
    font-weight: 600;
}

#marketing-main .case-reader ol {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 20px;
}

#marketing-main .case-reader ol > li {
    list-style: decimal;
}

#marketing-main .case-reader :is(ul, ol) + p {
    margin-top: 18px;
}

.case-callout {
    margin-top: 26px;
    padding: 24px;
    border-left: 3px solid #1263ad;
    border-radius: 0 8px 8px 0;
    background: #f1f7fd;
}

.case-article-main .mk-article-side {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

#marketing-main .case-reader h2,
#marketing-main .case-reader h3 {
    scroll-margin-top: 122px;
}

#marketing-main .case-reader a {
    color: #1263ad;
    font-size: inherit;
    text-decoration: none;
}

#marketing-main .case-reader a:hover {
    text-decoration: underline;
}

.case-reader img {
    max-width: 100%;
    height: auto;
}

.case-reader blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid #aacbec;
    background: #f5f8fc;
    color: #526579;
    font-size: 16px;
    line-height: 1.95;
}

.case-project-info {
    margin-top: 28px;
}

.case-project-info > div:first-child {
    color: #12304e;
    font-size: 18px;
    font-weight: 600;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.case-tags > * {
    padding: 4px 10px;
    border: 1px solid #e0e8f1;
    border-radius: 5px;
    background: #f5f8fc;
    color: #62758a;
    font-size: 12px;
    list-style: none;
}

.case-faq details {
    margin-top: 14px;
    padding: 18px 22px;
    border: 1px solid #e0e8f1;
    border-radius: 6px;
}

.case-faq summary {
    color: #244360;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    cursor: pointer;
}

#marketing-main .case-faq details > p {
    margin-top: 12px;
}

.case-related .mk-button {
    margin-top: 20px;
}

.case-pagination {
    margin-top: 36px;
}

.case-back-nav {
    display: flex;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e4eaf2;
}

#marketing-main .case-reader .case-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #d4e2f1;
    border-radius: 7px;
    background: #f5f9fe;
    color: #1263ad;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

#marketing-main .case-reader .case-back-link:hover {
    border-color: #a9c9ec;
    background: #eaf3fe;
    text-decoration: none;
}

.case-back-link > span {
    font-size: 18px;
    line-height: 1;
}

.case-mobile-toc {
    display: none;
}

@media (max-width: 1000px) {
    .case-mobile-toc {
        display: block;
        margin-bottom: 26px;
        padding: 14px 16px;
        border: 1px solid #dfe8f1;
        border-radius: 8px;
        background: #f8fbfe;
    }

    .case-mobile-toc summary {
        color: #032d60;
        font-weight: 600;
        cursor: pointer;
    }

    .case-mobile-toc nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
        margin-top: 10px;
    }

    .case-mobile-toc a {
        padding-block: 4px;
    }
}

@media (max-width: 760px) {
    .case-callout {
        padding: 20px;
    }

    .case-reader blockquote {
        padding: 18px 20px;
    }

    .case-faq details {
        padding: 16px 18px;
    }
}
