/* seedz1 单页（含 Privacy / Terms / Cookies 等法务页） */

.seedz1-single-page {
    --sp-sticky-top: 72px;
}

.seedz1-single-page main.sp-main {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--cat-primary, #1d2087) 6%, #fff) 0%, #fff 220px);
}

.sp-layout {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .sp-layout--with-aside {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 2.25rem;
        align-items: start;
    }
}

.sp-aside {
    position: sticky;
    top: var(--sp-sticky-top);
    z-index: 30;
}

.sp-aside__card {
    border: 1px solid var(--cat-border-lighter, #e6ebf5);
    border-radius: 0.75rem;
    background: color-mix(in srgb, #fff 92%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 0.85rem;
}

.sp-aside__label {
    margin: 0 0 0.55rem;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cat-muted, #666);
}

.sp-aside__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sp-aside__link,
.sp-aside__current {
    display: block;
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sp-aside__link {
    color: var(--cat-text, #333);
}

.sp-aside__link:hover {
    background: color-mix(in srgb, var(--cat-primary, #1d2087) 7%, #fff);
    color: var(--cat-primary, #1d2087);
    text-decoration: none;
}

.sp-aside__current {
    background: var(--cat-primary, #1d2087);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--cat-primary, #1d2087) 28%, transparent);
}

@media (max-width: 1023.98px) {
    .sp-aside {
        position: static;
    }

    .sp-aside__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .sp-aside__link,
    .sp-aside__current {
        padding: 0.45rem 0.7rem;
        font-size: 0.8125rem;
    }
}

.sp-intro {
    margin-bottom: 1.25rem;
}

.sp-intro__title {
    margin: 0;
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--cat-primary, #1d2087);
}

.sp-intro__lead {
    margin: 0.65rem 0 0;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cat-muted, #666);
}

.sp-cover {
    margin: 0 0 1.25rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--cat-border-lighter, #e6ebf5);
    background: #f5f5f5;
}

.sp-cover__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sp-article {
    border: 1px solid var(--cat-border-lighter, #e6ebf5);
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

@media (min-width: 768px) {
    .sp-article {
        padding: 1.75rem 2rem;
    }
}

@media (min-width: 1024px) {
    .sp-article {
        padding: 2rem 2.5rem;
    }
}

/* 富文本排版 */
.single-prose {
    max-width: 48rem;
    font-size: 0.975rem;
    line-height: 1.8;
    color: var(--cat-text, #333);
    word-break: break-word;
}

.single-prose,
.single-prose :where(*, *::before, *::after) {
    text-transform: none;
    letter-spacing: normal;
}

.single-prose :where(h1, h2, h3, h4, h5, h6),
.single-prose .sp-heading {
    margin: 1.75rem 0 0.65rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--seedz1-fg, #1a1a1a);
}

.single-prose :where(h1):first-child,
.single-prose :where(h2):first-child,
.single-prose :where(h3):first-child,
.single-prose .sp-heading:first-child {
    margin-top: 0;
}

.single-prose :where(h1) {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    color: var(--cat-primary, #1d2087);
}

.single-prose :where(h2),
.single-prose .sp-heading {
    font-size: 1.2rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--cat-border-lighter, #e6ebf5);
}

.single-prose :where(h3) {
    font-size: 1.05rem;
}

.single-prose :where(p) {
    margin: 0 0 1em;
}

.single-prose :where(p:empty),
.single-prose :where(p.sp-empty) {
    display: none;
}

.single-prose :where(ul, ol) {
    margin: 0 0 1.1em;
    padding-left: 1.35em;
}

.single-prose :where(ul) {
    list-style: disc;
}

.single-prose :where(ol) {
    list-style: decimal;
}

.single-prose :where(li) {
    margin-bottom: 0.4em;
}

.single-prose :where(a) {
    color: var(--cat-primary, #1d2087);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-prose :where(a:hover) {
    color: var(--cat-accent, #722f8b);
}

.single-prose :where(img) {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.single-prose :where(blockquote) {
    margin: 0 0 1.1em;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--cat-primary, #1d2087);
    background: color-mix(in srgb, var(--cat-primary, #1d2087) 5%, #fff);
    color: var(--cat-muted, #666);
}

.single-prose :where(table) {
    width: 100%;
    margin: 0 0 1.25em;
    border-collapse: collapse;
    background: #fff;
}

.single-prose :where(th, td) {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--cat-border-lighter, #e6ebf5);
    vertical-align: top;
    text-align: left;
}

.single-prose :where(th) {
    background: color-mix(in srgb, var(--cat-primary, #1d2087) 6%, #fff);
    font-weight: 700;
    color: var(--cat-primary, #1d2087);
}

.single-prose :where(tr:nth-child(even) td) {
    background: #fafbfd;
}

/* CMS 常见「短句段落当标题」 */
.single-prose .sp-heading {
    display: block;
}

/* 联系页既有卡片样式（从模板内联迁出） */
.seedz1-contact-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (prefers-reduced-motion: reduce) {
    .sp-aside__link,
    .sp-aside__current {
        transition: none;
    }
}
