.card-article{
    display: flex;
    width: 100%;
    height: fit-content;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 248, 255, 0.92) 100%);
    border: 1px solid rgba(237, 225, 255, 0.95);
    gap: 2.4rem;
    box-shadow: 0 12px 30px rgba(190, 170, 232, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.card-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(183, 158, 224, 0.24);
    border-color: rgba(228, 201, 250, 0.95);
}

.card-article::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -40%;
    width: 56%;
    height: 170%;
    transform: rotate(18deg);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 10%, rgba(255, 244, 252, 0.34) 50%, rgba(255, 255, 255, 0) 90%);
    pointer-events: none;
    transition: transform 0.34s ease;
}

.card-article:hover::before {
    transform: translateX(14px) rotate(18deg);
}
.card-article .card-cover{
    border: 2px solid #dde7ff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 18px;
    width: 240px;
    height: 156px;
    object-fit: cover;
    flex-shrink: 0;
}
.card-article:hover .card-cover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(183, 160, 237, 0.22);
}
.card-article article{
    width: 70%;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}
.card-article .card-text-head{
    font-size: 1.56rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    color: #615778;
    line-height: 1.35;
}
.card-article .card-text-meta {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #aaa0be;
    background: rgba(252, 248, 255, 0.64);
    border: 1px solid rgba(241, 234, 252, 0.62);
}
.card-article .card-text-body {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.75;
    color: #655b7a;
    font-weight: 400;
    position: relative;
}

.card-article.is-collapsed .card-text-body {
    max-height: 9.6em;
    overflow: hidden;
}

.card-article.is-collapsed .card-text-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(254, 250, 255, 0.92) 100%);
    pointer-events: none;
}

.card-article .card-readmore-btn {
    margin-top: 8px;
    border: none;
    background: transparent;
    color: #9d7db6;
    font-size: 0.9rem;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    cursor: pointer;
    padding: 0;
    line-height: 1.3;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card-article .card-readmore-btn:hover {
    color: #865ca8;
    transform: translateX(2px);
}

.card-article .card-text-body .md-heading {
    margin: 0.45em 0;
    line-height: 1.4;
}

.card-article .card-text-body .md-heading-1,
.card-article .card-text-body .md-heading-2 {
    font-size: 1.1em;
}

.card-article .card-text-body .md-paragraph,
.card-article .card-text-body .md-list,
.card-article .card-text-body .md-quote,
.card-article .card-text-body .md-code-block {
    margin: 0.45em 0;
}

.card-article .card-text-body .md-list {
    padding-left: 1.4em;
}

.card-article .card-text-body .md-quote {
    border-left: 3px solid rgba(201, 175, 233, 0.7);
    padding-left: 0.7em;
    color: #7a6b95;
    background: rgba(249, 244, 255, 0.66);
    border-radius: 8px;
}

.card-article .card-text-body .md-code-block {
    padding: 0.65em 0.75em;
    border-radius: 10px;
    background: rgba(244, 237, 255, 0.86);
    overflow-x: auto;
}

.card-article .card-text-body .md-inline-code {
    padding: 0.08em 0.35em;
    border-radius: 6px;
    background: rgba(238, 229, 252, 0.78);
}
.card-article .card-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.card-article .card-action-btn {
    border: 1px solid #e8d7ff;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.84rem;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #fff8fd;
    color: #8864a2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.card-article .card-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(177, 145, 217, 0.18);
}

.card-article .card-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.card-article .card-action-delete {
    border-color: #ffd7df;
    color: #b26a7a;
    background: #fff7f9;
}

body.guest-mode .card-article .card-action-edit,
body.guest-mode .card-article .card-action-delete {
    opacity: 0.45;
    pointer-events: none;
}
.card-count{
    display: flex;
    border-radius: 22px;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 247, 255, 0.9) 100%);
    border: 1px solid rgba(238, 228, 255, 0.9);
    justify-content: center;
    width: 100%;
    height: fit-content;
    padding: 20px 24px;
    box-shadow: 0 10px 24px rgba(188, 166, 228, 0.18);
    position: relative;
    overflow: hidden;
}

.card-count::before {
    content: "";
    position: absolute;
    top: -36px;
    right: -32px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 235, 246, 0.7) 0%, rgba(255, 235, 246, 0) 72%);
    pointer-events: none;
}
.card-count #head{

    font-family: 'Fredoka One', "Cambria Math", cursive;
    margin-bottom: 12px;
    align-self: center;
    font-size: 2.2rem;
    font-weight: 600;

}
.card-count .card-count-text{
    align-items: center;
    line-height: 1.55;
    display: flex;
    justify-content: space-between;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 1.18rem;
    font-weight: 500;
    color: #7d7092;
}

.card-count .count-runtime-line {
    margin-top: 8px;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 560;
    text-align: right;
    min-height: 1.8em;
}

#count-siteRunTime.is-runtime-cute {
    font-size: 1.08rem;
    color: #8a659f;
    letter-spacing: 0.28px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 237, 245, 0.85), rgba(240, 233, 255, 0.9), rgba(255, 237, 245, 0.85));
    background-size: 220% 100%;
    animation: runtime-breath 3.2s ease-in-out infinite;
}

#count-siteRunTime .runtime-strike {
    display: inline-block;
    color: #c690a8;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(198, 144, 168, 0.88);
    margin: 0 2px;
    transform: rotate(-2deg);
}

@keyframes runtime-breath {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 0 rgba(190, 146, 196, 0.18);
        transform: translateY(0);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 4px 12px rgba(190, 146, 196, 0.26);
        transform: translateY(-1px);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 0 rgba(190, 146, 196, 0.18);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #count-siteRunTime.is-runtime-cute {
        animation: none;
    }
}

@media (max-width: 900px) {
    .card-article {
        gap: 16px;
        padding: 18px;
    }

    .card-article .card-cover {
        width: 180px;
        height: 120px;
    }

    .card-article .card-text-head {
        font-size: 1.3rem;
    }

    .card-article .card-text-body {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .card-article {
        flex-direction: column;
    }

    .card-article article {
        width: 100%;
    }

    .card-article .card-cover {
        width: 100%;
        height: 180px;
    }

    .card-count .card-count-text {
        font-size: 1.02rem;
    }

    .card-count .count-runtime-line {
        font-size: 1rem;
    }

    #count-siteRunTime.is-runtime-cute {
        font-size: 1rem;
        padding: 3px 10px;
    }
}