.home-yazi-section {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 72px 0 92px;
    background: #fcf8f9;
    color: #1c1b1c;
}

.home-yazi-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-yazi-sidebar {
    width: 100%;
    min-width: 0;
}

.home-yazi-sidebar-inner {
    background: #f7f7fa;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-yazi-sidebar-title {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
    color: #1c1b1c;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.home-yazi-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8c5cc transparent;
    padding-right: 6px;
    mask-image: linear-gradient(black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(black 92%, transparent 100%);
}

.home-yazi-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.home-yazi-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #c8c5cc;
    border-radius: 10px;
}

.home-yazi-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-yazi-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 6px;
}

.home-yazi-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-primary);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.home-yazi-nav a:hover .home-yazi-nav-dot,
.home-yazi-nav a.is-active .home-yazi-nav-dot {
    opacity: 1;
}

.home-yazi-nav-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #68687a;
    transition: color 0.2s ease;
}

.home-yazi-nav a:hover .home-yazi-nav-text,
.home-yazi-nav a.is-active .home-yazi-nav-text {
    color: var(--home-primary);
}

.home-yazi-nav-item.is-level-3 {
    padding-left: 14px;
}

.home-yazi-article-wrap {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-yazi-article {
    flex: 1;
    min-height: 0;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8c5cc transparent;
    mask-image: linear-gradient(black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(black 90%, transparent 100%);
    padding-right: 8px;
}

.home-yazi-article::-webkit-scrollbar {
    width: 6px;
}

.home-yazi-article::-webkit-scrollbar-thumb {
    background: #c8c5cc;
    border-radius: 10px;
}

.home-yazi-article-header {
    margin-bottom: 56px;
}


.home-yazi-article-title {
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1c1b1c;
    margin-bottom: 20px;
}

.home-yazi-article-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #68687a;
    max-width: 768px;
    margin: 0;
}

.home-yazi-divider {
    height: 1px;
    width: 100%;
    background: #e8e8ef;
    margin-bottom: 56px;
}

.home-yazi-content {
    font-size: 16px;
    line-height: 1.7;
    color: #47464b;
}

.home-yazi-content h2,
.home-yazi-content h3 {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
    color: #1c1b1c;
    margin: 0 0 12px;
    scroll-margin-top: 110px;
}

.home-yazi-content h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.home-yazi-content h3 {
    font-size: 22px;
    margin-top: 8px;
}

.home-yazi-content p {
    margin-bottom: 16px;
}

.home-yazi-content ul,
.home-yazi-content ol {
    margin-bottom: 16px;
    padding-left: 1.25rem;
}

.home-yazi-content li {
    margin-bottom: 8px;
}

.home-yazi-content strong {
    color: #1c1b1c;
    font-weight: 600;
}

.home-yazi-content blockquote,
.home-yazi-content .highlight-box {
    background: #f7f7fa;
    border-left: 4px solid var(--home-primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.home-yazi-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.home-yazi-cta {
    background: #f7f7fa;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 56px;
}

.home-yazi-cta-title {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
    color: #1c1b1c;
    margin-bottom: 12px;
}

.home-yazi-cta-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #68687a;
    max-width: 576px;
    margin: 0 auto 32px;
}

.home-yazi-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.home-yazi-cta-primary,
.home-yazi-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 32px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.home-yazi-cta-primary {
    background: var(--home-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px var(--home-primary-shadow);
}

.home-yazi-cta-primary:hover {
    background: var(--home-primary-hover);
    color: #fff !important;
}

.home-yazi-cta-secondary {
    background: #fff;
    color: #1c1b1c !important;
    border: 1px solid #e8e8ef;
}

.home-yazi-cta-secondary:hover {
    background: #f1eded;
    color: #1c1b1c !important;
}

@media (min-width: 992px) {
    .home-yazi-section {
        padding: 92px 0;
    }

    .home-yazi-layout {
        flex-direction: row;
        gap: 56px;
        align-items: stretch;
    }

    .home-yazi-sidebar {
        width: 30%;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }

    .home-yazi-sidebar-inner {
        height: 600px;
        max-height: 600px;
    }

    .home-yazi-article-wrap {
        width: 70%;
    }

    .home-yazi-article {
        height: 600px;
        max-height: 600px;
    }

    .home-yazi-cta {
        padding: 40px;
    }

    .home-yazi-cta-actions {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .home-yazi-section {
        padding: 48px 0 64px;
    }

    .home-yazi-sidebar-inner {
        padding: 24px;
        max-height: 280px;
    }

    .home-yazi-sidebar-scroll {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .home-yazi-article {
        max-height: none;
        height: auto;
        mask-image: none;
        -webkit-mask-image: none;
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.home-yazi-section) {
        scroll-behavior: smooth;
    }
}
