/*
Theme Name: Siyi Theme
Author: siyi
Description: 好用的，一个就够了。
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: siyi-theme
*/

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
    --font-sans: "WenYuan Rounded SC VF", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: hsl(var(--primary) / 0.8);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.site-header {
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: hsl(var(--background) / 0.9);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover {
    color: hsl(var(--foreground));
}

.site-logo img {
    max-height: 2rem;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.site-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a i {
    font-size: 1rem;
    width: 1em;
    text-align: center;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.nav-menu li {
    position: relative;
}

.nav-menu .has-submenu > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}

.nav-menu .has-submenu:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.nav-menu .has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.sub-menu a:hover {
    background-color: hsl(var(--accent));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .site-nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .site-nav a {
        width: 100%;
    }

    .nav-menu .has-submenu > a::after {
        margin-left: auto;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 1rem;
        display: none;
    }

    .nav-menu .has-submenu.open > .sub-menu {
        display: block;
    }
}

.site-main {
    min-height: calc(100vh - 8rem);
}

.site-footer {
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copyright {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-icp {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.footer-icp a {
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease;
}

.footer-icp a:hover {
    color: hsl(var(--foreground));
}

.hero {
    background-color: hsl(var(--background));
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark .hero {
    background-color: #1a1a2e;
}

#hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas-container canvas {
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-search {
    margin-top: 2rem;
    position: relative;
    padding-top: 75px;
}

.cat-search-wrapper {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.cat-sleep-symbol {
    position: absolute;
    left: calc(50% - 55px);
    top: -5px;
    font-weight: 700;
    font-size: 16px;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.cat-sleep-symbol span {
    position: relative;
    display: inline-block;
    opacity: 1;
    transform: scale(1);
    animation: catSleep 4s ease-in-out infinite;
}

.cat-sleep-symbol span:nth-child(1) {
    animation-delay: 0s;
}

.cat-sleep-symbol span:nth-child(2) {
    animation-delay: 1s;
    margin-left: -4px;
}

.cat-sleep-symbol span:nth-child(3) {
    animation-delay: 2s;
    margin-left: -4px;
}

@keyframes catSleep {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-2px, -15px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.4);
    }
}

.cat-container {
    position: relative;
}

.cat-svg {
    color: hsl(var(--foreground));
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    width: 130px;
    height: 100px;
}

.cat-eyelid-left,
.cat-eyelid-right {
    transition: opacity 0.3s ease;
}

.cat-eyes-open {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-eyelid-left,
.hero-search-input:focus ~ .cat-search-wrapper .cat-eyelid-right,
.hero-search.awake .cat-eyelid-left,
.hero-search.awake .cat-eyelid-right {
    opacity: 0;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-eyes-open,
.hero-search.awake .cat-eyes-open {
    opacity: 1;
}

.hero-search-input:focus ~ .cat-search-wrapper .cat-sleep-symbol,
.hero-search.awake .cat-sleep-symbol {
    opacity: 0;
}

.hero-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 4px 12px -1px rgb(0 0 0 / 0.15);
    transition: all 0.2s ease;
}

.hero-search-form:focus-within {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    outline: none;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.hero-search-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hero-search-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.hero-btn {
    padding: 0.75rem 2rem;
    height: auto;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }
}

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    color: hsl(var(--primary-foreground));
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
    background-color: hsl(var(--destructive) / 0.9);
}

.input {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.badge-muted {
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    transition: all 0.15s ease;
    height: 100%;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover .post-card {
    border-color: hsl(var(--border) / 0.5);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.post-card-thumbnail {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    overflow: hidden;
    margin: -1.5rem -1.5rem 0 -1.5rem;
}

.post-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.post-card-excerpt {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.entry-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
}

.article-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
}

.article-content {
    min-width: 0;
}

.article-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
}

.article-header {
    position: relative;
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header-info {
    padding: 2rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.category-tag:hover {
    background: hsl(var(--primary) / 0.2);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.meta-item svg {
    opacity: 0.7;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.meta-item a:hover {
    color: hsl(var(--foreground));
}

.article-body {
    padding: 0 2rem 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(var(--foreground));
}

.article-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.article-body h3 {
    font-size: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.article-body ul {
    counter-reset: ul-item;
}

.article-body ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: hsl(var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
    transition: all 0.2s ease;
}

.article-body ul > li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
}

.article-body ul ul,
.article-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.article-body ul ul > li::before {
    width: 5px;
    height: 5px;
    background: transparent;
    border: 2px solid hsl(var(--primary));
    box-shadow: none;
}

.article-body ul ul ul > li::before {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.article-body ul ul ul > li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 2px;
    background: hsl(var(--muted-foreground));
    border-radius: 1px;
}

.article-body ol {
    counter-reset: ol-item;
}

.article-body ol > li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    counter-increment: ol-item;
}

.article-body ol > li::before {
    content: counter(ol-item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s ease;
}

.article-body ol > li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.article-body ol ol {
    counter-reset: ol-item-nested;
}

.article-body ol ol > li {
    counter-increment: ol-item-nested;
    padding-left: 2.75rem;
}

.article-body ol ol > li::before {
    content: counter(ol-item) '.' counter(ol-item-nested);
    font-size: 0.625rem;
    width: 1.75rem;
}

.article-body li {
    line-height: 1.7;
}

.article-body li > ul,
.article-body li > ol {
    margin-top: 0.5rem;
}

.article-body a {
    color: hsl(var(--primary));
    text-decoration: none;
    position: relative;
    background: linear-gradient(90deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    padding: 0.125rem 0.375rem;
    margin: 0 -0.375rem;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.2s ease;
    border-bottom: 1px solid hsl(var(--primary) / 0.3);
}

.article-body a:hover {
    background: hsl(var(--primary) / 0.15);
    border-bottom-color: hsl(var(--primary));
}

.article-body a:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.article-body a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: 0.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.dark .article-body a[target="_blank"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.article-body a[target="_blank"]:hover::after {
    opacity: 1;
}

.article-body img {
    border-radius: calc(var(--radius) * 1.5);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-body img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-body figure {
    margin: 2rem 0;
}

.article-body figure img {
    margin: 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    font-style: italic;
}

.article-body code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-body pre {
    position: relative;
    background: hsl(var(--muted) / 0.8);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid hsl(var(--border));
}

.article-body pre > span:first-child {
    display: none !important;
}

.article-body pre span[style*="FF5F56"],
.article-body pre span[style*="background-color:#2e3440"],
.article-body pre span[style*="background-color: #2e3440"] {
    display: none !important;
}

.article-body pre::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 50%;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--muted) / 0.5) 0%, hsl(var(--muted) / 0.3) 100%);
    border-radius: 0 calc(var(--radius) * 1.5) calc(var(--radius) * 1.5) 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    position: relative;
    overflow: hidden;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: hsl(var(--primary) / 0.15);
    line-height: 1;
    font-style: normal;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: hsl(var(--muted-foreground) / 0.8);
}

.article-body blockquote cite::before {
    content: '— ';
}

.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--border)) 20%, hsl(var(--border)) 80%, transparent 100%);
    margin: 3rem 0;
    position: relative;
}

.article-body hr::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
}

.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-body thead {
    background: linear-gradient(180deg, hsl(var(--muted) / 0.8) 0%, hsl(var(--muted) / 0.5) 100%);
}

.article-body th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: hsl(var(--foreground));
    border-bottom: 2px solid hsl(var(--border));
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body th:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}

.article-body td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    transition: background-color 0.15s ease;
}

.article-body td:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

.article-body tbody tr:hover td {
    background: hsl(var(--muted) / 0.3);
}

.article-body tbody tr:nth-child(even) {
    background: hsl(var(--muted) / 0.15);
}

.article-body tbody tr:nth-child(even):hover {
    background: hsl(var(--muted) / 0.35);
}

.article-body kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    line-height: 1;
    color: hsl(var(--foreground));
    background: linear-gradient(180deg, hsl(var(--muted)) 0%, hsl(var(--muted) / 0.8) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 hsl(var(--background) / 0.5);
    white-space: nowrap;
}

.article-body mark {
    background: linear-gradient(135deg, hsl(50 100% 80%) 0%, hsl(50 100% 70%) 100%);
    color: hsl(50 100% 20%);
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 500;
}

.dark .article-body mark {
    background: linear-gradient(135deg, hsl(50 80% 40%) 0%, hsl(50 80% 30%) 100%);
    color: hsl(50 100% 90%);
}

.article-body abbr[title] {
    text-decoration: underline dotted hsl(var(--muted-foreground));
    cursor: help;
}

.article-body del {
    text-decoration: line-through;
    color: hsl(var(--muted-foreground));
    opacity: 0.7;
}

.article-body ins {
    text-decoration: none;
    background: linear-gradient(135deg, hsl(142 76% 90%) 0%, hsl(142 76% 80%) 100%);
    color: hsl(142 76% 25%);
    padding: 0.125rem 0.25rem;
    border-radius: calc(var(--radius) - 4px);
}

.dark .article-body ins {
    background: linear-gradient(135deg, hsl(142 50% 30%) 0%, hsl(142 50% 20%) 100%);
    color: hsl(142 76% 85%);
}

.article-body sub,
.article-body sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-body sup {
    top: -0.5em;
}

.article-body sub {
    bottom: -0.25em;
}

.article-body details {
    margin: 1.5rem 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
}

.article-body summary {
    padding: 1rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
    list-style: none;
}

.article-body summary::-webkit-details-marker {
    display: none;
}

.article-body summary::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid hsl(var(--muted-foreground));
    border-bottom: 2px solid hsl(var(--muted-foreground));
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.article-body details[open] summary::after {
    transform: rotate(45deg);
}

.article-body summary:hover {
    background: hsl(var(--muted) / 0.5);
}

.article-body details > *:not(summary) {
    padding: 0 1.5rem 1.5rem;
}

.article-body .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.article-body .wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.article-body .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-body .gallery-item {
    margin: 0;
}

.article-body .gallery-item img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 2rem;
}

.tags-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: var(--radius);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.article-navigation {
    flex-direction: row;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.article-navigation .nav-previous {
    margin-right: auto;
}

.article-navigation .nav-next {
    margin-left: auto;
}

.article-navigation .nav-previous a,
.article-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-navigation .nav-next a {
    align-items: flex-end;
    text-align: right;
}

.article-navigation .nav-previous a:hover,
.article-navigation .nav-next a:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-direction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-article {
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.article-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
    max-height: calc(100vh - 6rem);
    overflow: hidden;
}

.article-sidebar .widget {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow: hidden;
    box-sizing: border-box;
}

.article-sidebar .widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
    flex-shrink: 0;
}

.toc-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: sticky;
    top: 5rem;
}

.toc-nav {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: calc(50vh - 60px);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc-nav::-webkit-scrollbar {
    display: none;
}

.toc-nav.no-smooth {
    scroll-behavior: auto !important;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    padding: 0;
    border: none;
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
    position: relative;
}

.toc-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--border));
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
}

.toc-link:hover::before {
    background: hsl(var(--muted-foreground));
}

.toc-link.active {
    color: hsl(var(--foreground));
    font-weight: 500;
    background: hsl(var(--muted));
}

.toc-link.active::before {
    background: hsl(var(--primary));
}

.toc-item.is-expanded > .toc-link {
    color: hsl(var(--foreground));
}

.toc-item.is-expanded > .toc-link::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-right: 1.5px solid hsl(var(--muted-foreground));
    border-bottom: 1.5px solid hsl(var(--muted-foreground));
    transition: transform 0.25s ease;
}

.toc-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
}

.toc-sublist.is-open {
    max-height: 1000px;
    opacity: 1;
}

.toc-sublist .toc-link {
    padding-left: 1.75rem;
    font-size: 0.75rem;
}

.toc-sublist .toc-sublist .toc-link {
    padding-left: 2.5rem;
}

.toc-item.is-active > .toc-link {
    animation: toc-highlight 0.3s ease;
}

@keyframes toc-highlight {
    50% {
        background: hsl(var(--primary) / 0.1);
    }
}

.floating-buttons {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 1rem;
        bottom: 1.5rem;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .article-sidebar {
        display: none;
    }

    .article-header-info {
        padding: 1.5rem;
    }

    .article-body {
        padding: 0 1.5rem 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-tags {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-navigation {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .article-navigation .nav-previous,
    .article-navigation .nav-next {
        max-width: 100%;
        margin-left: 0;
    }

    .article-navigation .nav-next a {
        align-items: flex-start;
    }
}

.entry-content {
    max-width: 65ch;
    color: hsl(var(--foreground));
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entry-content pre {
    background-color: hsl(var(--muted));
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
}

.entry-content blockquote {
    border-left: 4px solid hsl(var(--border));
    padding-left: 1rem;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid hsl(var(--border));
    padding: 0.75rem;
    text-align: left;
}

.entry-content th {
    background-color: hsl(var(--muted));
    font-weight: 600;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.entry-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.entry-navigation a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    max-width: 45%;
    transition: all 0.15s ease;
}

.entry-navigation a:hover {
    background-color: hsl(var(--accent));
}

.entry-navigation .nav-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-navigation .nav-title {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.layout-with-sidebar {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget li a {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    display: block;
}

.widget li a:hover {
    color: hsl(var(--foreground));
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination a {
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.pagination a:hover {
    background-color: hsl(var(--accent));
}

.pagination .current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.comments-area {
    margin-top: 3rem;
}

.comments-header {
    margin-bottom: 2rem;
    text-align: center;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.comments-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-list .children {
    margin-top: 1rem;
    margin-left: 3rem;
    padding-left: 1.5rem;
    border-left: 2px solid hsl(var(--border));
    list-style: none;
}

.comment-list > li {
    margin: 0;
}

.comment-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    transition: all 0.2s ease;
}

.comment-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(var(--border));
    transition: all 0.2s ease;
}

.comment-card:hover .avatar-img {
    border-color: hsl(var(--primary));
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
}

.comment-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.comment-author-name a:hover {
    color: hsl(var(--primary));
}

.comment-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.comment-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
}

.comment-edit-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.comment-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
}

.comment-text p {
    margin: 0 0 0.75rem 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-text a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-text a:hover {
    opacity: 0.8;
}

.comment-text code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.comment-text blockquote {
    margin: 0.75rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.comment-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
}

.comment-actions a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.comments-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.comments-pagination a,
.comments-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
}

.comments-pagination a {
    color: hsl(var(--foreground));
}

.comments-pagination a:hover {
    background: hsl(var(--accent));
}

.comments-pagination .current {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.comments-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    text-align: center;
}

.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1.5rem 0;
}

.comment-form {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    display: block;
    margin-bottom: 0.5rem;
}

.form-field label .required {
    color: hsl(var(--destructive));
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.15s ease;
    display: block;
    margin-top: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    height: auto;
    font-size: 0.875rem;
    font-weight: 500;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-submit:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}

.btn-submit svg {
    width: 16px;
    height: 16px;
}

#cancel-comment-reply-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}

#cancel-comment-reply-link:hover {
    color: hsl(var(--destructive));
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1.5rem;
        padding-left: 1rem;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }

    .comment-card {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-form {
        padding: 1.5rem;
    }
}

.captcha-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

.captcha-box {
    position: relative;
    width: 100%;
    height: 42px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
}

.captcha-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.captcha-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: hsl(var(--background));
    border-right: 1px solid hsl(var(--border));
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.captcha-slider:active {
    cursor: grabbing;
}

.captcha-icon {
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}

.captcha-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: hsl(var(--primary) / 0.1);
    transition: width 0.3s ease;
}

.captcha-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
    white-space: nowrap;
}

.captcha-success .captcha-box {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.captcha-success .captcha-slider {
    background: hsl(var(--primary));
    border-right-color: hsl(var(--primary));
}

.captcha-success .captcha-icon {
    color: hsl(var(--primary-foreground));
}

.captcha-success .captcha-text {
    color: hsl(var(--primary));
    font-weight: 500;
}

.captcha-shake {
    animation: captcha-shake 0.5s ease-in-out;
}

@keyframes captcha-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.captcha-group {
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-actions .captcha-wrapper {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .input {
    flex: 1;
}

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
}

.archive-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, hsl(var(--primary) / 0.5), hsl(var(--primary) / 0.1));
    border-radius: 1px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: hsl(var(--foreground));
    position: relative;
    padding-left: 2.5rem;
}

.timeline-year::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.3);
}

.timeline-month {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
    margin-left: 2rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
}

.timeline-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1.25rem;
    border-radius: calc(var(--radius) * 1.5);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    position: relative;
}

.timeline-link:hover {
    transform: translateX(0.5rem);
    border-color: hsl(var(--primary));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
}

.timeline-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    min-width: 4.5rem;
    font-weight: 500;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-year {
        font-size: 1.25rem;
        padding-left: 1.5rem;
    }

    .timeline-year::before {
        width: 1rem;
        height: 1rem;
        left: 0.25rem;
    }

    .timeline-month {
        margin-left: 1rem;
    }

    .timeline-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4) { animation-delay: 0.25s; }
.link-card:nth-child(5) { animation-delay: 0.3s; }
.link-card:nth-child(6) { animation-delay: 0.35s; }
.link-card:nth-child(n+7) { animation-delay: 0.4s; }

.link-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.link-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: hsl(var(--muted));
}

.link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 1.25rem;
    font-weight: 600;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-name {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.link-apply-section {
    margin-top: 3rem;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.link-apply-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.link-site-info {
    flex: 1;
}

.site-info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.site-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.site-info-item:hover {
    background: hsl(var(--muted) / 0.5);
}

.site-info-item .copy-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-info-item:hover .copy-icon {
    opacity: 0.5;
}

.site-info-item.copied {
    background: hsl(var(--primary) / 0.1);
}

.site-info-item.copied .copy-icon {
    opacity: 1;
    color: hsl(var(--primary));
}

.site-info-item.copied::after {
    content: '已复制';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

.site-info-item.copied .copy-icon {
    display: none;
}

.site-info-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.site-info-value {
    color: hsl(var(--foreground));
    font-weight: 500;
    word-break: break-all;
    padding-right: 1.5rem;
}

.link-apply-divider {
    width: 1px;
    background: hsl(var(--border));
    margin: 0.5rem 0;
}

.link-apply-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.link-apply-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.link-apply-desc {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.link-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.link-apply-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.link-apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.link-apply-modal-content {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.link-apply-modal.is-open .link-apply-modal-content {
    transform: scale(1) translateY(0);
}

.link-apply-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.link-apply-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.link-apply-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-apply-modal-close:hover {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.link-apply-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-apply-container {
        flex-direction: column;
    }

    .link-apply-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }

    .link-apply-action {
        padding: 1.5rem 0;
    }

    .site-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-info-item {
        align-items: center;
    }
}

.link-apply-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-group label .required {
    color: hsl(var(--destructive));
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-group input::placeholder {
    color: hsl(var(--muted-foreground));
}

.link-apply-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    display: none;
}

.link-apply-message.success {
    display: block;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.3);
}

.link-apply-message.error {
    display: block;
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
    border: 1px solid hsl(var(--destructive) / 0.3);
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.error-404 p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.theme-toggle:hover {
    background-color: hsl(var(--accent));
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-toggle .moon-icon {
    display: none;
}

.dark .theme-toggle .sun-icon {
    display: none;
}

.dark .theme-toggle .moon-icon {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.grid { display: grid; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.image-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active .image-lightbox-content {
    transform: scale(1);
}

.image-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-lightbox-close:hover {
    background: hsl(var(--destructive));
    border-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    transform: rotate(90deg);
}

.image-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-lightbox-nav:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: translateY(-50%) scale(1.1);
}

.image-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.image-lightbox-nav:disabled:hover {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
    transform: translateY(-50%);
}

.image-lightbox-prev {
    left: 1.5rem;
}

.image-lightbox-next {
    right: 1.5rem;
}

.image-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.image-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    z-index: 10;
}

.image-lightbox-caption {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--card) / 0.9);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.image-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.image-lightbox-zoom-hint {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: hsl(var(--card) / 0.9);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    z-index: 10;
}

.image-lightbox-zoom-hint svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .image-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .image-lightbox-prev {
        left: 0.75rem;
    }

    .image-lightbox-next {
        right: 0.75rem;
    }

    .image-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }

    .image-lightbox-counter {
        bottom: 0.75rem;
        font-size: 0.75rem;
    }

    .image-lightbox-caption {
        bottom: 3rem;
        max-width: 90%;
        font-size: 0.75rem;
    }
}

.article-body .wp-block-image {
    margin: 2rem 0;
}

.article-body .wp-block-image img {
    margin: 0;
}

.article-body .wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    font-style: italic;
}

.article-body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-body .wp-block-gallery .blocks-gallery-item {
    margin: 0;
}

.article-body .wp-block-gallery .blocks-gallery-item img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: zoom-in;
}

.article-body .wp-block-columns {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.article-body .wp-block-column {
    min-width: 0;
}

.article-body .wp-block-columns.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
}

.article-body .wp-block-columns.is-layout-flex .wp-block-column {
    flex: 1;
}

.article-body .wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--border)) 20%, hsl(var(--border)) 80%, transparent 100%);
    margin: 3rem 0;
}

.article-body .wp-block-separator.is-style-wide {
    background: hsl(var(--border));
}

.article-body .wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}

.article-body .wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 1.5rem;
    letter-spacing: 1rem;
    color: hsl(var(--muted-foreground));
}

.article-body .wp-block-pullquote {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, hsl(var(--muted) / 0.5) 0%, hsl(var(--muted) / 0.3) 100%);
    border-radius: calc(var(--radius) * 1.5);
    border-left: 4px solid hsl(var(--primary));
    text-align: center;
}

.article-body .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-style: normal;
}

.article-body .wp-block-pullquote p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: hsl(var(--foreground));
}

.article-body .wp-block-pullquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-style: normal;
}

.article-body .wp-block-quote.is-style-large {
    padding: 2rem 3rem;
    font-size: 1.125rem;
}

.article-body .wp-block-verse {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: hsl(var(--muted) / 0.5);
    padding: 1.5rem;
    border-radius: var(--radius);
    white-space: pre-wrap;
    margin: 2rem 0;
}

.article-body .wp-block-code {
    background: hsl(var(--muted) / 0.8);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-body .wp-block-code code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

.article-body .wp-block-preformatted {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    background: hsl(var(--muted) / 0.5);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.article-body .has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.8;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: hsl(var(--primary));
}

.article-body .wp-block-button {
    margin: 1.5rem 0;
}

.article-body .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-body .wp-block-button.is-style-fill .wp-block-button__link {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.article-body .wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
}

.article-body .wp-block-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.article-body .wp-block-alert.is-style-info {
    background: hsl(200 100% 97%);
    border-color: hsl(200 100% 40%);
}

.dark .article-body .wp-block-alert.is-style-info {
    background: hsl(200 50% 15%);
}

.article-body .wp-block-alert.is-style-success {
    background: hsl(142 76% 97%);
    border-color: hsl(142 76% 36%);
}

.dark .article-body .wp-block-alert.is-style-success {
    background: hsl(142 50% 12%);
}

.article-body .wp-block-alert.is-style-warning {
    background: hsl(50 100% 95%);
    border-color: hsl(50 100% 45%);
}

.dark .article-body .wp-block-alert.is-style-warning {
    background: hsl(50 50% 15%);
}

.article-body .wp-block-alert.is-style-error {
    background: hsl(0 84% 97%);
    border-color: hsl(0 84% 60%);
}

.dark .article-body .wp-block-alert.is-style-error {
    background: hsl(0 50% 15%);
}

.article-license {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted) / 0.3) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    position: relative;
    overflow: hidden;
}

.article-license::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.6) 50%, hsl(var(--primary)) 100%);
}

.license-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.license-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.license-icons a:hover {
    transform: scale(1.05);
}

.license-icon {
    width: 32px;
    height: 32px;
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.license-icons a:hover .license-icon {
    color: hsl(var(--primary));
}

.license-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    letter-spacing: 0.05em;
}

.license-content {
    text-align: center;
}

.license-content > p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.license-content a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.license-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.license-rules {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.license-rules .rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
}

.license-rules .rule svg {
    flex-shrink: 0;
}

.license-rules .rule.allowed {
    background: hsl(142 76% 97%);
    color: hsl(142 76% 25%);
}

.dark .license-rules .rule.allowed {
    background: hsl(142 50% 12%);
    color: hsl(142 70% 70%);
}

.license-rules .rule.forbidden {
    background: hsl(0 84% 97%);
    color: hsl(0 84% 30%);
}

.dark .license-rules .rule.forbidden {
    background: hsl(0 50% 12%);
    color: hsl(0 70% 70%);
}

.license-rules .rule strong {
    font-weight: 600;
}

.license-author {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed hsl(var(--border));
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    word-break: break-all;
}

.license-author a {
    color: hsl(var(--foreground));
    font-weight: 500;
}

@media (max-width: 640px) {
    .article-license {
        padding: 1.25rem;
    }

    .license-icon {
        width: 28px;
        height: 28px;
    }

    .license-rules .rule {
        flex-direction: column;
        text-align: center;
        gap: 0.375rem;
        padding: 0.75rem;
    }

    .license-author {
        font-size: 0.75rem;
    }
}