* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--color-primary, #334f52);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--bg) 0%, #f7f2e8 55%, #e4f2f4 100%);
}

.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.snow-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.snow-layer i {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: snow-fall 6s linear infinite;
}

@keyframes snow-fall {
    to {
        transform: translateY(110vh);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 24px;
    background: rgba(255, 255, 255, 0.48);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
}

body.is-subpage .site-header {
    display: none;
}

body.is-subpage .site-footer {
    display: none;
}

body.is-subpage .site-main {
    padding-top: 96px;
}

.global-nav-card {
    position: fixed;
    top: 16px;
    left: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 340px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 40px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    animation: global-nav-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes global-nav-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.global-nav-home img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 18px -9px rgba(0, 0, 0, 0.25);
}

.global-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.global-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: opacity 0.2s, transform 0.2s;
}

.global-nav-links a:hover,
.global-nav-links a.active {
    color: var(--brand);
    transform: scale(1.08);
}

.global-nav-icon {
    width: 26px;
    height: 26px;
    opacity: 0.62;
    transition: opacity 0.2s;
}

.global-nav-links a:hover .global-nav-icon,
.global-nav-links a.active .global-nav-icon {
    opacity: 1;
}

.page-edit-btn {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 60;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--secondary);
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.page-edit-btn:hover {
    background: #fff;
    color: var(--brand);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334f52;
    font-weight: 700;
    text-decoration: none;
}

.site-brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.25);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--brand);
    color: #fff;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-search input,
.site-search button {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}

.site-search input {
    width: 170px;
    background: rgba(255, 255, 255, 0.7);
}

.site-search button {
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.7);
    color: #334f52;
    cursor: pointer;
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 40px;
    padding: 24px;
    background: var(--card, rgba(255, 255, 255, 0.58));
    box-shadow:
        0 40px 50px -32px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.card-title {
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

body.is-home .site-header {
    display: none;
}

body.is-home .site-footer {
    display: none;
}

body.is-home .site-main {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.home-dashboard {
    position: relative;
    width: 100%;
    height: 100vh;
}

.home-dashboard > * {
    animation: home-card-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.home-dashboard > *:nth-child(1) { animation-delay: 0.1s; }
.home-dashboard > *:nth-child(2) { animation-delay: 0.8s; }
.home-dashboard > *:nth-child(3) { animation-delay: 0.3s; }
.home-dashboard > *:nth-child(4) { animation-delay: 0.1s; }
.home-dashboard > *:nth-child(5) { animation-delay: 0.6s; }
.home-dashboard > *:nth-child(6) { animation-delay: 0.7s; }
.home-dashboard > *:nth-child(7) { animation-delay: 0.8s; }
.home-dashboard > *:nth-child(8) { animation-delay: 0.4s; }
.home-dashboard > *:nth-child(9) { animation-delay: 0.5s; }
.home-dashboard > *:nth-child(10) { animation-delay: 0.6s; }
.home-dashboard > *:nth-child(11) { animation-delay: 0.8s; }

@keyframes home-card-in {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.home-card {
    position: absolute;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover,
.home-art-card:hover {
    transform: scale(1.03);
}

.home-art-card,
.home-write-btn,
.home-like-button {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-write-btn:hover {
    transform: translateY(-2px);
}

.home-like-button:hover {
    transform: scale(1.08);
}

.pos-nav {
    position: absolute;
    left: calc(50% - 496px);
    top: calc(50vh - 314px);
    width: 280px;
    height: 434px;
}

.pos-latest {
    position: absolute;
    left: calc(50% - 437px);
    top: calc(50vh + 156px);
    width: 266px;
    height: 160px;
}

.pos-art {
    position: absolute;
    left: calc(50% - 180px);
    top: calc(50vh - 404px);
    width: 360px;
    height: 200px;
}

.pos-hi {
    position: absolute;
    left: calc(50% - 180px);
    top: calc(50vh - 168px);
    width: 360px;
    height: 288px;
}

.pos-social {
    position: absolute;
    left: calc(50% - 135px);
    top: calc(50vh + 156px);
    width: 315px;
    height: 48px;
}

.pos-share {
    position: absolute;
    left: calc(50% - 135px);
    top: calc(50vh + 240px);
    width: 200px;
    height: 180px;
}

.pos-write {
    position: absolute;
    left: calc(50% + 216px);
    top: calc(50vh - 308px);
    width: auto;
    height: 42px;
}

.pos-clock {
    position: absolute;
    left: calc(50% + 216px);
    top: calc(50vh - 248px);
    width: 232px;
    height: 132px;
}

.pos-calendar {
    position: absolute;
    left: calc(50% + 216px);
    top: calc(50vh - 80px);
    width: 350px;
    height: 286px;
}

.pos-music {
    position: absolute;
    left: calc(50% + 96px);
    top: calc(50vh + 242px);
    width: 293px;
    height: 66px;
}

.pos-like {
    position: absolute;
    left: calc(50% + 101px);
    top: calc(50vh + 342px);
    width: 54px;
    height: 54px;
}

.home-nav-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.home-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.home-nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.home-nav-brand span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-nav-brand strong {
    color: #334f52;
    font-size: 20px;
}

.home-nav-brand small {
    color: var(--brand);
    font-size: 12px;
}

.home-nav-general {
    margin-top: 24px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-nav-links {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.home-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.home-nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    opacity: 0.7;
}

.home-nav-links a.active,
.home-nav-links a:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #334f52;
}

.home-nav-links a.active .home-nav-icon,
.home-nav-links a:hover .home-nav-icon {
    opacity: 1;
    color: var(--brand);
}

.home-latest-card {
    padding: 20px;
}

.home-latest-card h2,
.home-share-card h2 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 14px;
}

.home-latest-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
}

.home-latest-cover {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.home-latest-main {
    min-width: 0;
    flex: 1;
}

.home-latest-link strong {
    display: block;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-latest-link span {
    color: var(--secondary);
    font-size: 12px;
}

.home-latest-link p {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--secondary);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-art-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 30px 50px -44px rgba(0, 0, 0, 0.25);
}

.home-art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    text-align: center;
}

.home-hi-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.home-hi-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.3);
}

.home-hat {
    position: absolute;
    top: -42px;
    left: 50%;
    width: 120px;
    transform: translateX(-50%);
    pointer-events: none;
}

.home-hi-card p {
    margin: 14px 0 0;
    color: var(--secondary);
    font-size: 14px;
}

.home-hi-card h1 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.4;
}

.home-hi-card h1 span {
    color: var(--brand);
}

.home-hi-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.home-social-btn.github {
    background: #070707;
    color: #fff;
}

.home-social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.home-social-btn:hover {
    background: var(--brand);
    color: #fff;
}

.home-share-card {
    padding: 18px;
}

.home-share-card > a {
    display: block;
    text-decoration: none;
}

.home-share-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 8px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    vertical-align: middle;
}

.home-share-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.home-share-card strong {
    display: inline-block;
    overflow: hidden;
    max-width: calc(100% - 58px);
    font-size: 14px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.home-share-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-write-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 138px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: var(--brand);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-write-btn img {
    width: 20px;
    height: 20px;
}

.home-config-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    transition: transform 0.2s, background 0.2s;
}

.home-config-btn:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.06);
}

.home-config-btn img {
    width: 24px;
    height: 24px;
}

.home-clock-card {
    padding: 8px;
}

.home-clock-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.08);
}

.home-clock-face .clock-time {
    font-size: 38px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.home-clock-face .clock-date {
    color: var(--secondary);
    font-size: 12px;
}

.home-calendar-card {
    padding: 18px;
}

.home-calendar-card h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
}

.home-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.home-calendar-grid span,
.home-calendar-grid i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 26px;
    border-radius: 8px;
    color: var(--secondary);
    font-size: 12px;
    font-style: normal;
}

.home-calendar-grid span.current {
    color: var(--brand);
    font-weight: 700;
}

.home-calendar-grid span.today {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.home-music-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.home-music-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    color: var(--brand);
}

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

.home-music-info strong {
    display: block;
    overflow: hidden;
    color: var(--secondary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-music-bar {
    display: block;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.home-music-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand));
    transition: width 0.2s linear;
}

.home-music-card button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    cursor: pointer;
}

.home-music-card button img {
    width: 16px;
    height: 16px;
}

.home-like-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #e47c8f;
    cursor: pointer;
}

.home-like-button span {
    font-size: 20px;
}

.home-like-button em {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    border-radius: 999px;
    padding: 2px 5px;
    background: #e47c8f;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 1.3;
}

.like-particle {
    position: absolute;
    inset: 0;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    background: #f4718f;
    animation: like-particle 0.8s ease-out forwards;
}

@keyframes like-particle {
    to {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

.pos-beian {
    position: absolute;
    left: calc(50% - 100px);
    top: calc(50vh + 410px);
    width: 200px;
    color: var(--secondary);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.home-empty {
    color: var(--secondary);
    font-size: 13px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 22px;
    margin-bottom: 22px;
}

.hero-card {
    padding: 42px;
}

.hero-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow {
    margin: 22px 0 4px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
}

.hero-card h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
}

.hero-card h1 span {
    color: var(--brand);
}

.hero-desc {
    margin: 16px 0 0;
    color: var(--secondary);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.social-link {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.social-link:hover {
    background: var(--brand);
    color: #fff;
}

.hero-side {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 22px;
}

.clock-card {
    min-height: 148px;
}

.clock-time {
    font-size: 44px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.clock-date {
    margin-top: 4px;
    color: var(--secondary);
    font-size: 14px;
}

.stat-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.stat-card strong {
    font-size: 28px;
    font-variant-numeric: tabular-nums;
}

.stat-card span {
    color: var(--secondary);
    font-size: 13px;
}

.art-card {
    padding: 10px;
}

.art-card img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    border-radius: 26px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.latest-link {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.latest-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.latest-meta {
    color: var(--secondary);
    font-size: 13px;
}

.latest-card p,
.post-card p,
.archive-row p {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 14px;
}

.page-list {
    display: grid;
    gap: 8px;
}

.page-list a {
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
}

.posts-card {
    padding: 30px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.36);
}

.post-card time,
.archive-row time {
    color: var(--secondary);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.post-card h2 {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.post-card h2 a,
.archive-row h3 a {
    color: inherit;
    text-decoration: none;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--secondary);
    font-size: 13px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
}

.pagination .active {
    background: var(--brand);
    color: #fff;
}

.page-head {
    margin-bottom: 22px;
}

.page-title-card h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
}

.page-title-card p {
    margin: 6px 0 0;
    color: var(--secondary);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.blog-categories a {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
}

.blog-categories a:hover {
    background: var(--brand);
    color: #fff;
}

.blog-page-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 30px;
}

.blog-view-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px;
    border-radius: 40px;
}

.blog-view-switch a {
    border-radius: 14px;
    padding: 8px 17px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.blog-view-switch a:hover {
    background: rgba(255, 255, 255, 0.62);
    color: var(--brand);
}

.blog-view-switch a.active {
    background: var(--brand);
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.blog-list-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin-top: 24px;
}

.blog-list-card {
    width: min(840px, 100%);
    padding: 24px 28px;
}

.blog-list-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
}

.blog-list-card-head i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9d9d9;
}

.blog-list-card-head small {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 400;
}

.blog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: background 0.2s;
}

.blog-row:last-child {
    border-bottom: 0;
}

.blog-row time {
    width: 44px;
    flex: 0 0 44px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
}

.blog-row-dot {
    position: relative;
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--secondary);
    transition: height 0.25s, background 0.25s;
}

.blog-row-dot::after {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 1px;
    height: 22px;
    background: rgba(0, 0, 0, 0.08);
    content: "";
    transform: translateX(-50%);
}

.blog-row:hover .blog-row-dot {
    height: 16px;
    background: var(--brand);
}

.blog-row-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s, transform 0.25s;
}

.blog-read-tag {
    margin-left: 8px;
    color: var(--secondary);
    font-size: 12px;
    font-style: normal;
}

.blog-row:hover .blog-row-title {
    color: var(--brand);
    transform: translateX(8px);
}

.blog-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 42%;
}

.blog-row-tags em {
    color: var(--secondary);
    font-size: 13px;
    font-style: normal;
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.blog-more:hover {
    color: var(--brand);
    transform: scale(1.05);
}

.blog-more img {
    width: 16px;
    height: 16px;
}

.blog-empty {
    margin-top: 60px;
    color: var(--secondary);
    font-size: 14px;
}

.blog-cover-hover {
    position: fixed;
    z-index: 999;
    width: 220px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.16s, transform 0.16s;
}

.blog-cover-hover.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.blog-cover-hover img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.blog-enter {
    animation: blog-enter 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes blog-enter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.archive-card {
    padding: 34px;
}

.archive-year {
    margin: 28px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--brand);
    font-size: 24px;
}

.archive-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.archive-row:last-child {
    border-bottom: 0;
}

.archive-row h3 {
    margin: 2px 0 0;
    font-size: 19px;
}

.archive-cover {
    display: block;
    width: 100%;
    max-height: 220px;
    margin-bottom: 10px;
    border-radius: 14px;
    object-fit: cover;
}

.article-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.article-main {
    min-width: 0;
    flex: 1;
    max-width: 920px;
}

.article-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 200px;
    flex: 0 0 200px;
}

.sidebar-card {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
}

.sidebar-card h2 {
    margin: 0 0 8px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
}

.sidebar-card p {
    max-height: 240px;
    margin: 0;
    overflow: auto;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.6;
}

.sidebar-cover img {
    display: block;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.article-sidebar .toc-box {
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.sidebar-like {
    position: relative;
    width: 54px;
    height: 54px;
}

.article-layout .article-card,
.article-layout .comments-card {
    max-width: none;
    margin: 0 0 22px;
}

.article-card,
.comments-card {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.article-card {
    padding: 42px;
    margin-bottom: 22px;
}

.article-head h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.3;
}

.toc-box {
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.4);
}

.toc-title {
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
}

.toc-empty {
    color: var(--secondary);
    font-size: 13px;
}

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

.toc-box a {
    display: block;
    padding: 4px 0;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
}

.toc-box a:hover {
    color: var(--brand);
}

.toc-box .toc-h3 {
    padding-left: 16px;
}

.article-body pre {
    position: relative;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.code-block-wrapper {
    position: relative;
}

.code-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary);
    font-size: 12px;
    cursor: pointer;
    z-index: 2;
}

.article-body {
    margin-top: 26px;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.9;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 1.8em 0 0.8em;
    line-height: 1.3;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.article-body pre {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.article-body code {
    border-radius: 6px;
    padding: 0.15em 0.4em;
    background: rgba(0, 0, 0, 0.06);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

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

.article-body blockquote {
    margin: 1.2em 0;
    border-left: 4px solid var(--brand);
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
}

.article-body th,
.article-body td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 10px;
    text-align: left;
}

.theme-lamp {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd36e, #ff8f5e);
    box-shadow: 0 0 0 3px rgba(255, 211, 110, 0.25);
}

.theme-checkbox {
    width: 16px;
    height: 16px;
    margin: 0 4px;
    accent-color: var(--brand);
}

.theme-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1em 0;
}

.theme-progress-track {
    display: block;
    flex: 1;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
}

.theme-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.theme-progress em {
    min-width: 44px;
    color: var(--secondary);
    font-size: 13px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.theme-collapse {
    margin: 1em 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.38);
}

.theme-collapse-item + .theme-collapse-item {
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.theme-collapse-item summary {
    padding: 14px 16px;
    color: #334f52;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.theme-collapse-item summary::-webkit-details-marker {
    display: none;
}

.theme-collapse-item summary::after {
    content: "+";
    float: right;
    color: var(--brand);
}

.theme-collapse-item[open] summary::after {
    content: "-";
}

.theme-collapse-body {
    padding: 0 16px 14px;
    color: var(--secondary);
}

.theme-callout {
    margin: 1em 0;
    border-left: 4px solid #f0ad4e;
    border-radius: 0 14px 14px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
}

.theme-alert {
    margin: 1em 0;
    border-left: 4px solid;
    border-radius: 0 14px 14px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
}

.theme-alert-success {
    border-color: #18a058;
}

.theme-alert-info {
    border-color: #2080f0;
}

.theme-alert-warning {
    border-color: #f0a020;
}

.theme-alert-error {
    border-color: #d03050;
}

.theme-owo {
    display: inline-block;
    height: 1.4em;
    width: auto;
    margin: 0 2px;
    vertical-align: -0.3em;
}

.theme-draw {
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.article-tags a {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
}

.post-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto 22px;
}

.post-pager a {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--secondary);
    font-size: 14px;
    text-decoration: none;
}

.comments-card {
    padding: 30px;
}

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

.comment-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px 0;
}

.comment-children {
    margin: 14px 0 0 24px;
    padding: 0 0 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    list-style: none;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
}

.comment-owner {
    border-radius: 999px;
    padding: 2px 8px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
}

.comment-head time {
    color: var(--secondary);
    font-size: 12px;
}

.comment-reply a {
    color: var(--brand);
    font-size: 13px;
    text-decoration: none;
}

.comment-form {
    margin-top: 24px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.comment-form input,
.comment-form textarea,
.tool-card input,
.tool-card textarea,
.timer-inputs input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.65);
    color: #334f52;
    font: inherit;
}

.comment-form button,
.tool-card button,
.snippet-next {
    border: 0;
    border-radius: 999px;
    padding: 11px 22px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.comment-login,
.comment-closed,
.empty-state {
    color: var(--secondary);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.item-card {
    overflow: hidden;
    padding: 0;
}

.item-card > img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.item-body {
    padding: 22px;
}

.item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.item-top h2 {
    margin: 0;
    min-width: 0;
    font-size: 18px;
    line-height: 1.3;
}

.item-top h2 a {
    color: inherit;
    text-decoration: none;
}

.item-top > span {
    color: var(--secondary);
    font-size: 13px;
    white-space: nowrap;
}

.item-body p {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 14px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.item-tags span {
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
    font-size: 12px;
}

.item-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.item-links a {
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.share-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

.share-logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.blogger-card {
    display: flex;
    gap: 18px;
    padding: 22px;
}

.blogger-avatar {
    flex: 0 0 auto;
}

.blogger-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: #e8a838;
    white-space: nowrap;
}

.picture-grid {
    columns: 3 260px;
    column-gap: 20px;
}

.picture-card {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 20px;
    padding: 10px;
}

.picture-card img {
    width: 100%;
    border-radius: 24px;
}

.picture-card figcaption {
    margin-top: 10px;
    color: var(--secondary);
    font-size: 13px;
}

.compact-body {
    max-width: 920px;
    margin: 0 auto 22px;
    padding: 28px;
}

.about-page {
    max-width: 920px;
    margin: 0 auto;
}

.about-head {
    margin-bottom: 22px;
    text-align: center;
}

.about-head h1 {
    margin: 0;
    font-size: 34px;
}

.about-head p {
    margin: 8px 0 0;
    color: var(--secondary);
}

.about-article {
    margin-bottom: 22px;
}

.about-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.about-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    background: #070707;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.about-github img {
    width: 24px;
    height: 24px;
}

.about-like {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #e47c8f;
    cursor: pointer;
}

.about-like em {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    border-radius: 999px;
    padding: 2px 5px;
    background: #e47c8f;
    color: #fff;
    font-size: 11px;
    font-style: normal;
}

.svg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
}

.svg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--secondary);
    font-size: 12px;
    cursor: pointer;
}

.svg-item img {
    width: 36px;
    height: 36px;
}

.tool-card {
    max-width: 780px;
    margin: 0 auto;
}

.segmented {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.4);
}

.segmented button {
    flex: 1;
    border: 0;
    border-radius: 12px;
    padding: 11px;
    background: transparent;
    color: var(--secondary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.segmented button.active {
    background: var(--brand);
    color: #fff;
}

.time-display {
    padding: 46px 0 34px;
    text-align: center;
    font-size: 58px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.timer-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.timer-inputs input {
    width: 90px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
}

.timer-inputs span {
    color: var(--secondary);
    font-size: 26px;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.tool-actions button.primary {
    background: var(--brand);
}

.lap-list {
    max-height: 260px;
    overflow: auto;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.lap-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 9px 4px;
    color: var(--secondary);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.drop-zone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.35);
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.drop-zone.dragging {
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.6);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
}

.toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
}

.toolbar input[type="range"] {
    width: 140px;
}

.toolbar input[type="number"] {
    width: 90px;
}

.toolbox-list {
    display: grid;
    gap: 12px;
}

.toolbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
}

.toolbox-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

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

.toolbox-info strong,
.toolbox-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbox-info small {
    color: var(--secondary);
}

.toolbox-item button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.tool-card textarea {
    min-height: 140px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.tool-error {
    color: #d64545;
    font-size: 14px;
}

.music-shell {
    display: grid;
    gap: 22px;
}

.music-card {
    max-width: 900px;
    margin: 0 auto;
}

.music-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.music-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000;
}

.music-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.snippet-card {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.snippet-text {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.6;
}

.live2d-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.live2d-stage {
    height: 560px;
}

.live2d-stage canvas {
    width: 100%;
    height: 100%;
}

.live2d-status {
    color: var(--secondary);
    font-size: 14px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: var(--secondary);
    font-size: 14px;
}

.site-footer a {
    color: inherit;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.25s, transform 0.25s;
    cursor: pointer;
}

body.is-subpage .scroll-top-btn {
    bottom: 100px;
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.scroll-top-btn img {
    width: 28px;
    height: 28px;
}

.scroll-top-btn:hover {
    transform: scale(1.06);
}

.global-music-card {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 54;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 293px;
    height: 66px;
    border-radius: 40px;
    padding: 12px 16px;
    animation: global-nav-in 0.55s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.global-music-icon {
    width: 32px;
    height: 32px;
}

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

.global-music-info strong {
    display: block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.global-music-card button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.global-music-card button img {
    width: 18px;
    height: 18px;
}

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .home-dashboard > * {
        animation: none;
    }
}

@media (max-width: 1120px) {
    .home-dashboard {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        height: auto;
    }

    .home-card,
    .home-art-card,
    .home-social-row,
    .home-write-group,
    .home-write-btn,
    .home-like-button {
        position: static;
        width: auto !important;
        height: auto !important;
    }

    .home-art-card {
        min-height: 180px;
    }

    .home-clock-face {
        min-height: 130px;
    }

    .home-calendar-grid span,
    .home-calendar-grid i {
        aspect-ratio: auto;
        height: 30px;
    }

    .home-hero,
    .home-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .art-card {
        grid-column: 1 / -1;
    }

    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .global-nav-card {
        left: 50%;
        width: auto;
        transform: translateX(-50%);
        animation: none;
    }

    body.is-subpage .site-main {
        padding-top: 96px;
    }

    .global-music-card {
        right: 16px;
        left: 16px;
        width: auto;
    }

    body.is-subpage .scroll-top-btn {
        right: 16px;
    }

    .home-dashboard {
        grid-template-columns: 1fr;
    }

    .article-layout {
        display: block;
    }

    .article-sidebar {
        display: none;
    }

    .home-social-row {
        flex-wrap: wrap;
    }

    .home-music-card {
        flex-wrap: wrap;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .site-search {
        display: none;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        padding-top: 6px;
    }

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

    .site-main {
        padding: 16px 16px 44px;
    }

    .card,
    .hero-card,
    .article-card,
    .archive-card,
    .comments-card {
        border-radius: 26px;
        padding: 20px;
    }

    .hero-card h1 {
        font-size: 27px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .art-card {
        grid-column: auto;
    }

    .clock-time {
        font-size: 40px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .archive-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .article-head h1 {
        font-size: 26px;
    }

    .post-pager {
        grid-template-columns: 1fr;
    }

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

    .time-display {
        font-size: 44px;
    }

    .picture-grid {
        columns: 2 140px;
        column-gap: 12px;
    }

    .picture-card {
        margin-bottom: 12px;
    }

    .blogger-card {
        flex-direction: column;
    }

    .blog-page-main {
        padding: 40px 10px 20px;
    }

    .blog-view-switch a {
        padding: 8px 12px;
    }

    .blog-list-card {
        padding: 18px 16px;
    }

    .blog-row-tags {
        display: none;
    }

    .blog-row-title {
        font-size: 14px;
    }
}
