@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .bg-grid {
        background-size: 40px 40px;
        background-image: 
            linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    }
}
html {
    scroll-behavior: smooth;
}
#mobile-menu-toggle {
    display: none;
}
#mobile-menu {
    display: none;
}
#mobile-menu-toggle:checked ~ #mobile-menu {
    display: block;
}
.menu-icon .fa-times {
    display: none;
}
#mobile-menu-toggle:checked ~ label .menu-icon .fa-bars {
    display: none;
}
#mobile-menu-toggle:checked ~ label .menu-icon .fa-times {
    display: inline-block;
}
.fade-in {
    animation: fadeIn .8s ease-in-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
@keyframes shrinkHeader {
    from {
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    }
    to {
        padding: .5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    }
}
.scroll-sensor {
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    z-index: 30;
    pointer-events: none;
}
.scroll-sensor:hover ~ header {
    animation: shrinkHeader .3s forwards;
}
.function-btn {
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.function-btn:hover {
    background: #1E293B;
    color: #fff;
}
.function-btn:active {
    transform: scale(.95);
}
.function-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .6s ease, height .6s ease;
}
.function-btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.breadcrumb-item {
    position: relative;
    padding-right: 1rem;
}
.breadcrumb-item:not(:last-child)::after {
    content: "/";
    position: absolute;
    right: 0.3rem;
    color: #94a3b8;
    font-weight: 300;
}
.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}
.breadcrumb-item a:hover {
    color: #165DFF;
    text-decoration: underline;
}
.breadcrumb-item:last-child {
    color: #334155;
    font-weight: 500;
}
#hero .fade-in {
    animation-delay: .2s;
}
#features .fade-in {
    animation-delay: .4s;
}
#features .grid > div {
    animation: fadeIn .8s ease-in-out forwards;
    opacity: 0;
}
#features .grid > div:nth-child(1) { animation-delay: .6s; }
#features .grid > div:nth-child(2) { animation-delay: .7s; }
#features .grid > div:nth-child(3) { animation-delay: .8s; }
#features .grid > div:nth-child(4) { animation-delay: .9s; }
#features .grid > div:nth-child(5) { animation-delay: 1s; }
#features .grid > div:nth-child(6) { animation-delay: 1.1s; }
#features .grid > div:nth-child(7) { animation-delay: 1.2s; }
#features .grid > div:nth-child(8) { animation-delay: 1.3s; }
#features .grid > div:nth-child(9) { animation-delay: 1.4s; }
#features .grid > div:nth-child(10) { animation-delay: 1.5s; }
#features .grid > div:nth-child(11) { animation-delay: 1.6s; }
#features .grid > div:nth-child(12) { animation-delay: 1.7s; }

#testimonials .fade-in {
    animation-delay: .4s;
}
#testimonials .grid > div {
    animation: fadeIn .8s ease-in-out forwards;
    opacity: 0;
}
#testimonials .grid > div:nth-child(1) { animation-delay: .6s; }
#testimonials .grid > div:nth-child(2) { animation-delay: .8s; }
#testimonials .grid > div:nth-child(3) { animation-delay: 1s; }
#testimonials .grid > div:nth-child(4) { animation-delay: 1.2s; }
#testimonials .grid > div:nth-child(5) { animation-delay: 1.4s; }
#testimonials .grid > div:nth-child(6) { animation-delay: 1.6s; }
#testimonials .grid:nth-child(2) { animation: fadeIn .8s ease-in-out 1.8s forwards; opacity: 0; }

#tutorial .fade-in {
    animation-delay: .4s;
}
#tutorial .aspect-video {
    animation: fadeIn .8s ease-in-out .6s forwards;
    opacity: 0;
}
#tutorial .space-y-8 {
    animation: fadeIn .8s ease-in-out .8s forwards;
    opacity: 0;
}

#faq .fade-in {
    animation-delay: .4s;
}
#faq .space-y-6 > div {
    animation: fadeIn .8s ease-in-out forwards;
    opacity: 0;
}
#faq .space-y-6 > div:nth-child(1) { animation-delay: .6s; }
#faq .space-y-6 > div:nth-child(2) { animation-delay: .7s; }
#faq .space-y-6 > div:nth-child(3) { animation-delay: .8s; }
#faq .space-y-6 > div:nth-child(4) { animation-delay: .9s; }
#faq .space-y-6 > div:nth-child(5) { animation-delay: 1s; }
#faq .space-y-6 > div:nth-child(6) { animation-delay: 1.1s; }
#faq .mt-12 {
    animation: fadeIn .8s ease-in-out 1.2s forwards;
    opacity: 0;
}
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta {
    margin-top: auto;
    color: #64748b;
    font-size: 0.875rem;
}
.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.article-content ul {
    margin: 1rem 0 1rem 1.5rem;
    list-style-type: disc;
}
.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.toc-item {
    transition: all 0.2s ease;
}
.toc-item:hover {
    padding-left: 4px;
    color: #165DFF;
}
.pagination {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 2rem;
align-items: center;
}

.pagination a {
padding: 0.5rem 1rem;
border-radius: 4px;
color: rgb(75 85 99);
text-decoration: none;
transition: all 0.3s ease;
background: #fff;
border: 1px solid #94a3b8;
}

.pagination .pageinfo {
padding: 0.5rem 1rem;
border-radius: 4px;
background: none;
color: #64748b;
border: none;
}

.pagination .pageinfo strong {
color: #3b82f6;
margin: 0 0.3rem;
}

.pagination a:hover:not(.nopage),
.pagination .curpage {
background: #3b82f6;
border-color: #2563eb;
color: white;
transform: translateY(-2px);
}

.pagination .nopage {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
background: rgba(75, 85, 99, 0.3);
border-color: #cbd5e1;
color: #94a3b8;
}

.pagination .listpage {
min-width: 2.5rem;
text-align: center;
}

@media (max-width: 768px) {
.pagination {
margin-top: 2rem;
padding-top: 1.5rem;
}
}