/* 琳琅首页沿用站点字体和按钮，专属样式限制在页面内部。 */
.linlang-page {
    --ll-accent: #4636ff;
    --ll-ink: #1f1841;
    --ll-muted: #646175;
    --ll-line: #e4e4ee;
}

.ll-main h1, .ll-main h2, .ll-main h3 {
    color: var(--ll-ink);
}

.ll-main p {
    color: var(--ll-muted);
    line-height: 1.9;
}

.ll-main [hidden] {
    display: none !important;
}

.ll-main a:focus-visible, .ll-main button:focus-visible, .ll-menu-close:focus-visible {
    outline: 3px solid var(--ll-accent);
    outline-offset: 5px;
}

.ll-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 96px;
    background: radial-gradient(ellipse at 95% 0, #eeedf8 0, transparent 60%), #fafafc;
    border-bottom: 1px solid var(--ll-line);
}

.ll-hero .container {
    position: relative;
    z-index: 1;
}

.ll-breadcrumb {
    display: flex;
    gap: 14px;
    margin-bottom: 42px;
    font-size: 14px;
    color: var(--ll-muted);
}

.ll-breadcrumb a:hover {
    color: var(--ll-accent);
}

.ll-eyebrow {
    display: block;
    color: var(--ll-accent);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.ll-hero h1 {
    font-size: clamp(60px, 6vw, 88px);
    font-weight: 700;
    line-height: 1.12;
    margin: 24px 0;
    letter-spacing: -2px;
}

.ll-hero h1 > span {
    display: block;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.5;
    letter-spacing: 0;
    margin-top: 24px;
    font-weight: 600;
}

.ll-hero-copy > p {
    max-width: 490px;
    font-size: 17px;
}

.ll-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.ll-main .z-btn {
    height: auto;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 0;
    box-shadow: none;
}

.ll-history-link {
    display: inline-block;
    margin-top: 26px;
    color: var(--ll-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--ll-line);
    padding-bottom: 5px;
}

.ll-history-link:hover {
    color: var(--ll-accent);
    border-color: currentColor;
}

.ll-text-link {
    color: var(--ll-accent);
    font-size: 15px;
    font-weight: 600;
}

a.ll-text-link:hover {
    color: #271ab2;
}

.ll-text-link > span {
    display: inline-block;
    margin-left: 8px;
}

/* 首页以居中首屏和浅色分区建立层次，不影响更新日志页。 */
.linlang-home {
    --ll-ink: #252534;
    --ll-muted: #62636f;
    --ll-line: #e2e3e8;
}

.linlang-home .ll-hero {
    text-align: center;
    border-bottom: 0;
    background: radial-gradient(ellipse at 50% 0, #e9edf8 0, transparent 68%), linear-gradient(180deg, #f4f5f8, #fafaf9);
}

.linlang-home .ll-breadcrumb, .linlang-home .ll-actions {
    justify-content: center;
}

.linlang-home .ll-hero-copy {
    max-width: 760px;
    margin-inline: auto;
}

.linlang-home .ll-hero-copy > p {
    max-width: 610px;
    margin-inline: auto;
}

.linlang-home .ll-why {
    background: #fafaf9;
}

.linlang-home .ll-start {
    background: #f3f4f6;
}

.linlang-home .ll-resources {
    background: #fafaf9;
}

.ll-announcement {
    padding: 40px 0;
    background: #eef1f8;
}

.ll-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    gap: 72px;
    align-items: start;
}

.ll-news-heading, .ll-news-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ll-news-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin: 16px 0 12px;
    line-height: 1.3;
}

.ll-news-heading > p {
    margin: 0;
    font-size: 13px;
}

.ll-news-content > p {
    margin: 0 0 18px;
    font-size: 16px;
}

.ll-news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.ll-news-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ll-muted);
}

.ll-news-list strong {
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    color: var(--ll-accent);
}

.ll-section {
    padding: 90px 0;
}

.ll-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 36px;
}

.ll-main .section__title h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.4;
    margin: 10px 0 0;
}

.ll-main .section__title > span {
    font-size: 14px;
    color: var(--ll-accent);
}

.ll-section-heading > p {
    max-width: 400px;
    margin: 0;
    font-size: 15px;
}

.ll-services {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
}

.ll-service-tabs {
    padding: 18px 18px 18px 0;
    border-right: 1px solid var(--ll-line);
}

.ll-service-tabs button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
    padding: 17px 18px;
    border: 0;
    border-left: 2px solid transparent;
    text-align: left;
    background: transparent;
    color: var(--ll-muted);
    font-weight: 500;
}

.ll-service-tabs button + button {
    margin-top: 4px;
}

.ll-service-tabs button i {
    width: 22px;
    text-align: center;
}

.ll-service-tabs button:hover {
    background: #eeecff;
    color: var(--ll-accent);
}

.ll-service-tabs button[aria-selected="true"] {
    background: #f3f2fb;
    color: var(--ll-accent);
    border-left-color: var(--ll-accent);
}

.ll-service-panels {
    grid-column: 1 / -1;
}

.ll-services.is-enhanced .ll-service-panels {
    grid-column: auto;
}

.ll-service-panel {
    min-width: 0;
    padding: 36px 0 36px 36px;
}

.ll-service-panel + .ll-service-panel {
    border-top: 1px solid var(--ll-line);
}

.ll-services.is-enhanced .ll-service-panel {
    border: 0;
}

.ll-service-panel h3 {
    font-size: 27px;
    line-height: 1.5;
    margin: 18px 0 14px;
}

.ll-service-panel p {
    max-width: 650px;
}

.ll-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 22px 0 28px;
    padding: 0;
}

.ll-tags li {
    padding-right: 12px;
    font-size: 12px;
    color: var(--ll-muted);
}

.ll-tags li + li {
    border-left: 1px solid var(--ll-line);
    padding-left: 14px;
}

.ll-start {
    background: #f8f9fc;
    border-block: 1px solid var(--ll-line);
}

.ll-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}

.ll-steps > li {
    border-top: 2px solid #dcd9fb;
    padding-top: 24px;
}

.ll-step-number {
    display: block;
    color: #9c98c2;
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 26px;
}

.ll-steps h3, .ll-resource h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.ll-steps p {
    font-size: 15px;
    min-height: 85px;
}

.ll-resources {
    text-align: center;
}

.ll-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.ll-resource {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0 0;
    border-top: 1px solid var(--ll-line);
}

a.ll-resource:hover {
    border-color: var(--ll-accent);
}

.ll-resource > i {
    color: var(--ll-accent);
    font-size: 28px;
    margin-bottom: 26px;
}

.ll-resource p {
    font-size: 15px;
    margin-bottom: 25px;
}

.ll-resource > .ll-text-link, .ll-repo-links {
    margin-top: auto;
}

.ll-repo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.ll-menu-close {
    display: block;
    margin-left: auto;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid #e4e4ee;
    background: #f7f8fc;
    color: #4636ff;
}

/* 每项服务可放多组图文或代码；宽示例独占一行，移动端自动纵向排列。 */
.ll-service-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    margin-top: 32px;
}

.ll-service-examples > .ll-example-wide {
    grid-column: 1 / -1;
}

.ll-demo-code {
    min-width: 0;
    margin: 0;
    background: #f6f6f9;
}

.ll-demo-code figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--ll-line);
    color: var(--ll-muted);
    font-size: 12px;
}

.ll-demo-code pre {
    margin: 0;
    padding: 24px;
    max-height: 420px;
    overflow: auto;
    color: #36324f;
    tab-size: 4;
}

.ll-demo-code code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.85;
    color: inherit;
    background: transparent;
}

.ll-demo-code pre:focus-visible {
    outline: 2px solid var(--ll-accent);
    outline-offset: 2px;
}

.ll-demo-code .ll-example-note {
    margin: 0;
    padding: 14px 0 0;
    background: #fff;
    font-size: 13px;
    line-height: 1.8;
}

.ll-demo-image {
    min-width: 0;
    margin: 0;
}

.ll-demo-image > img {
    display: block;
    width: 100%;
    height: auto;
}

.ll-demo-placeholder {
    aspect-ratio: 8 / 5;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: radial-gradient(ellipse at top right, #eeedf8, transparent 80%), #f6f6f9;
    color: var(--ll-muted);
}

.ll-demo-placeholder strong {
    font-size: 24px;
    font-weight: 500;
    color: var(--ll-ink);
}

.ll-demo-placeholder > span {
    font-size: 12px;
    letter-spacing: 1px;
}

.ll-demo-image figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 14px 0 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--ll-muted);
}

.ll-demo-image figcaption strong {
    color: var(--ll-ink);
    font-weight: 500;
}

/* 亮点以编号和留白分组，保持轻量的非卡片布局。 */
.ll-why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    gap: 72px;
}

.ll-why-intro > p {
    margin: 24px 0;
    font-size: 16px;
}

.ll-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 36px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ll-highlight-number {
    display: block;
    margin-bottom: 16px;
    color: var(--ll-accent);
    font-size: 13px;
    letter-spacing: 2px;
}

.ll-highlights h3 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.ll-highlights p {
    font-size: 14px;
    margin: 0;
}

/* 更新日志按时间分栏，不用卡片堆叠。 */
.ll-changelog-hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: 0;
}

.ll-changelog-hero p {
    max-width: 580px;
    margin-top: 24px;
}

.ll-changelog-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.ll-log-overview {
    padding: 12px 0 12px 40px;
    border-left: 2px solid var(--ll-accent);
    overflow-wrap: anywhere;
}

.ll-log-overview h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.3;
    margin: 24px 0 0;
}

.ll-log-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 28px 0;
}

.ll-log-facts dt {
    color: var(--ll-muted);
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
}

.ll-log-facts dd {
    color: var(--ll-ink);
    font-size: 20px;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.ll-log-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 60px;
}

.ll-log-entries, .ll-release {
    min-width: 0;
    overflow-wrap: anywhere;
    scroll-margin-top: 110px;
}

.ll-log-retry {
    padding: 10px 20px;
    margin-top: 18px;
    color: var(--ll-accent);
    border: 1px solid var(--ll-line);
    background: transparent;
}

.ll-log-retry:hover {
    background: #f3f2fb;
    border-color: var(--ll-accent);
}

.ll-log-aside p {
    margin-top: 18px;
    font-size: 14px;
}

.ll-log-empty {
    padding: 40px 0;
    border-block: 1px solid var(--ll-line);
}

.ll-log-empty h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.ll-log-empty p {
    margin: 0;
}

.ll-release {
    border-top: 1px solid var(--ll-line);
    padding: 32px 0;
}

.ll-release header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ll-release h2 {
    font-size: 28px;
    margin: 0;
}

.ll-release time {
    color: var(--ll-muted);
    font-size: 14px;
}

.ll-release h3 {
    font-size: 16px;
    margin-top: 24px;
    color: var(--ll-accent);
}

.ll-release ul {
    padding-left: 20px;
    color: var(--ll-muted);
    line-height: 1.9;
}

@media (prefers-reduced-motion: no-preference) {
    .ll-hero-copy {
        animation: ll-arrive .6s ease both;
    }

    @keyframes ll-arrive {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 991px) {
    .ll-news-layout {
        gap: 32px;
    }

    .ll-hero {
        padding: 40px 0 60px;
    }

    .ll-hero-copy > p {
        max-width: 620px;
    }

    .ll-section {
        padding: 60px 0;
    }

    .ll-section-heading {
        display: block;
    }

    .ll-section-heading > p {
        max-width: none;
        margin-top: 18px;
    }

    .ll-services {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .ll-service-tabs {
        padding: 12px;
    }

    .ll-service-tabs button {
        padding: 15px 10px;
        gap: 10px;
    }

    .ll-service-panel {
        padding: 30px 0 30px 28px;
    }

    .ll-service-examples {
        grid-template-columns: minmax(0, 1fr);
    }

    .ll-steps, .ll-resource-grid {
        gap: 20px;
    }

    .ll-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-why-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .ll-log-layout {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 32px;
    }

    .ll-changelog-heading {
        gap: 32px;
    }

    .ll-log-overview {
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .ll-news-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ll-announcement {
        padding: 32px 0;
    }

    .ll-breadcrumb {
        margin-bottom: 28px;
    }

    .ll-services {
        display: block;
    }

    .ll-service-tabs {
        display: flex;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--ll-line);
        gap: 6px;
        padding: 12px;
    }

    .ll-service-tabs button {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 12px;
        font-size: 14px;
    }

    .ll-service-tabs button + button {
        margin-top: 0;
    }

    .ll-service-panel {
        padding: 26px 0;
    }

    .ll-service-panel h3 {
        font-size: 23px;
    }

    .ll-steps, .ll-resource-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ll-steps p {
        min-height: 0;
    }

    .ll-step-number {
        margin-bottom: 18px;
    }

    .ll-highlights, .ll-log-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ll-changelog-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .ll-demo-code figcaption, .ll-demo-code pre {
        padding: 16px;
    }
}
