/* =============================================================
 * Like Girl · 心语 (little.php) — Minimalist Editorial
 * Refined pass: pure white cards, no colored stripes, calm
 * typography, encrypted cards get a centered lock illustration.
 * The hero blends seamlessly into the page background.
 * ============================================================= */

:root {
    --lg-ink:        #1a1d2e;
    --lg-ink-soft:   #2d3147;
    --lg-muted:      #6b7080;
    --lg-faint:      #aab0bf;
    --lg-paper:      #f6f4ef;
    --lg-paper-warm: #f1ece0;
    --lg-line:       #e8e2d3;
    --lg-line-soft:  #efeadd;
    --lg-accent:     #d4526a;
    --lg-accent-2:   #8a7ab8;
    --lg-card-bg:    #ffffff;
    --lg-radius:     14px;
    --lg-shadow:     0 2px 14px rgba(34, 41, 65, 0.04);
    --lg-shadow-h:   0 14px 40px rgba(34, 41, 65, 0.08);
    --lg-font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    --lg-font-mono:  'Helvetica Neue', 'PingFang SC', Arial, sans-serif;
}

/* ============================================================
 * 1. Page Container
 * ============================================================ */

.little-page-central {
    width: 1240px !important;
    max-width: 95% !important;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ============================================================
 * 2. Editorial Hero — blends seamlessly with page background
 *    No color tints, no border, no decorative blur orbs.
 * ============================================================ */

.little-hero {
    position: relative;
    padding: 80px 0 60px;
    margin-bottom: 56px;
    overflow: hidden;
}

.little-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}

.little-hero-copy { min-width: 0; }

.little-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--lg-font-mono);
    font-size: 0.74rem;
    letter-spacing: 5px;
    color: var(--lg-muted);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.little-hero-kicker::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--lg-accent);
    display: inline-block;
}

.little-hero-title {
    margin: 0 0 22px;
    font-family: var(--lg-font-serif);
    font-size: clamp(2.6rem, 5.8vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--lg-ink);
}

.little-hero-title em {
    font-style: italic;
    color: var(--lg-accent);
    font-family: 'Georgia', serif;
}

.little-hero-sub {
    font-size: 1rem;
    color: var(--lg-ink-soft);
    line-height: 1.85;
    max-width: 520px;
    margin: 0;
    font-family: var(--lg-font-serif);
}

.little-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    font-family: var(--lg-font-mono);
}

.little-hero-count {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--lg-ink);
}

.little-hero-count-num {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--lg-accent);
    font-family: var(--lg-font-mono);
}

.little-hero-count-label {
    font-size: 0.74rem;
    letter-spacing: 4px;
    color: var(--lg-muted);
    text-transform: uppercase;
}

.little-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--lg-muted);
    text-transform: uppercase;
}

.little-hero-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6dbe92;
    box-shadow: 0 0 0 4px rgba(109, 190, 146, 0.18);
    animation: lg-pulse 2s ease-in-out infinite;
}

@keyframes lg-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(109, 190, 146, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(109, 190, 146, 0.05); }
}

@media (max-width: 768px) {
    .little-hero { padding: 56px 0 40px; margin-bottom: 32px; }
    .little-hero-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .little-hero-aside { align-items: flex-start; }
    .little-hero-count-num { font-size: 2.6rem; }
}

/* ============================================================
 * 3. Card Grid
 * ============================================================ */

.little-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0 0 80px;
}

@media (max-width: 860px) {
    .little-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 60px;
    }
}

/* ============================================================
 * 4. Card — Minimalist Editorial
 *    Entire card is clickable. No colored stripe, no buttons.
 *    Author differentiation lives in the avatar border ring.
 * ============================================================ */

.little-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--lg-card-bg);
    border-radius: var(--lg-radius);
    border: 1px solid var(--lg-line-soft);
    box-shadow: var(--lg-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1),
                box-shadow .4s cubic-bezier(.22, 1, .36, 1),
                border-color .3s ease;
}

.little-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lg-shadow-h);
    border-color: var(--lg-line);
}

/* ----- Card Body ----- */
.little-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 32px 26px;
    gap: 16px;
    position: relative;
}

/* Index — top-right corner, very small mono */
.little-card-index {
    position: absolute;
    top: 26px;
    right: 28px;
    font-family: var(--lg-font-mono);
    font-size: 0.7rem;
    color: var(--lg-faint);
    letter-spacing: 2px;
    font-weight: 500;
    pointer-events: none;
}

/* ----- Meta Row ----- */
.little-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--lg-font-mono);
    padding-right: 60px; /* leave room for the absolute index */
}

.little-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--lg-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.little-card[data-author="girl"] .little-card-cat i { color: var(--lg-accent); }
.little-card[data-author="boy"] .little-card-cat i   { color: var(--lg-accent-2); }

.little-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--lg-faint);
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: var(--lg-font-mono);
}

.little-card-date i {
    font-size: 0.78rem;
}

.little-card-author-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--lg-font-serif);
    font-size: 0.78rem;
    color: var(--lg-muted);
    letter-spacing: 1.5px;
    line-height: 1.2;
    font-style: italic;
}

/* Decorative dot separator in front of the date */
.little-card-author-date::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--lg-faint);
    display: inline-block;
    flex-shrink: 0;
}

.little-card-author-date i {
    font-size: 0.72rem;
    color: var(--lg-faint);
}

/* ----- Title ----- */
.little-card-title {
    margin: 0;
    font-family: var(--lg-font-serif);
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--lg-ink);
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}

.little-card[data-author="girl"]:hover .little-card-title { color: var(--lg-accent); }
.little-card[data-author="boy"]:hover  .little-card-title { color: var(--lg-accent-2); }

/* ----- Excerpt ----- */
.little-card-excerpt {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.85;
    color: var(--lg-ink-soft);
    font-family: var(--lg-font-serif);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ----- Author Row ----- */
.little-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--lg-line-soft);
}

.little-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lg-line-soft);
    box-shadow: 0 0 0 2px transparent;
    flex-shrink: 0;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.little-card[data-author="girl"] .little-card-avatar {
    border-color: rgba(212, 82, 106, 0.18);
}

.little-card[data-author="boy"] .little-card-avatar {
    border-color: rgba(138, 122, 184, 0.18);
}

.little-card:hover .little-card-avatar {
    border-color: #fff;
}

.little-card[data-author="girl"]:hover .little-card-avatar {
    box-shadow: 0 0 0 2px var(--lg-accent);
}

.little-card[data-author="boy"]:hover .little-card-avatar {
    box-shadow: 0 0 0 2px var(--lg-accent-2);
}

.little-card-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.little-card-author-name {
    font-family: var(--lg-font-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--lg-ink);
    letter-spacing: 1px;
    line-height: 1.2;
}

.little-card-author-desc {
    font-family: var(--lg-font-mono);
    font-size: 0.7rem;
    color: var(--lg-muted);
    letter-spacing: 1px;
}

/* ----- Card Footer — subtle separator only ----- */
.little-card-footer {
    margin: 0 32px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--lg-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.little-card-read {
    font-family: var(--lg-font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--lg-muted);
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.little-card[data-author="girl"]:hover .little-card-read { color: var(--lg-accent); }
.little-card[data-author="boy"]:hover  .little-card-read { color: var(--lg-accent-2); }

.little-card-read i {
    font-size: 0.7rem;
    transition: transform .3s ease;
}

.little-card:hover .little-card-read i {
    transform: translateX(4px);
}

.little-card-stats {
    font-family: var(--lg-font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--lg-faint);
}

/* ============================================================
 * 5. Encrypted Card — placeholder lock illustration
 *    The real article text is NEVER rendered in HTML. A neutral
 *    dotted placeholder sits underneath the centered lock + msg.
 * ============================================================ */

.little-card[data-encrypted="1"] .little-card-excerpt {
    position: relative;
    isolation: isolate;
    user-select: none;
    min-height: 110px;
    color: var(--lg-faint);
    font-family: var(--lg-font-mono);
    font-size: 0.85rem;
    letter-spacing: 6px;
    line-height: 1.85;
}

.little-card-encrypt {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.little-card-encrypt-icon {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: var(--lg-faint);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.little-card-encrypt-text {
    font-family: var(--lg-font-serif);
    font-size: 0.92rem;
    letter-spacing: 3px;
    color: var(--lg-muted);
}

.little-card-encrypt-hint {
    font-family: var(--lg-font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--lg-faint);
    text-transform: uppercase;
}

/* ============================================================
 * 6. Empty State
 * ============================================================ */

.little-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--lg-muted);
    font-family: var(--lg-font-serif);
}

.little-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    fill: none;
    stroke: var(--lg-faint);
    stroke-width: 1.4;
    opacity: 0.5;
}

.little-empty-text {
    font-size: 1.02rem;
    letter-spacing: 2px;
}

/* ============================================================
 * 7. Responsive Tweaks
 * ============================================================ */

@media (max-width: 600px) {
    .little-card-body  { padding: 22px 22px 18px; gap: 14px; }
    .little-card-footer { margin: 0 22px; padding: 12px 0 16px; }
    .little-card-title { font-size: 1.22rem; }
    .little-card-excerpt { font-size: 0.92rem; -webkit-line-clamp: 2; }
    .little-card-avatar { width: 32px; height: 32px; }
    .little-card-index  { top: 20px; right: 20px; }
    .little-card-meta   { padding-right: 48px; }
}

/* ============================================================
 * 8. Legacy / Detail page content styles (preserved)
 *    These rules apply to .little_texts which is used on the
 *    detail page (page.php) for the article body itself.
 * ============================================================ */

.little_texts {
    background: var(--lg-card-bg);
    padding: 1rem 0 2rem;
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--lg-shadow);
    border: 1px solid var(--lg-line-soft);
    margin-bottom: 1rem;
    position: relative;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.little_texts .file {
    width: 90%;
    margin: 1rem auto 2rem;
    text-align: left;
    font-size: 1.2rem;
    line-height: 2.5rem;
    letter-spacing: 0.2rem;
    font-family: var(--lg-font-serif);
    font-weight: 400;
}

.little_texts img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    box-shadow: 0 4px 8px 0 rgb(28 31 33 / 15%);
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
}

.little_texts .icon,
.little_texts svg.icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

.line .icon {
    width: 200px !important;
    height: 200px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    display: block;
}

.little_texts img[width][height] {
    width: auto !important;
    max-width: 100%;
}

.little_texts img:hover {
    cursor: url(../cur/hover.cur), pointer;
}

.little_texts .little_icon {
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.little_texts h1,
.little_texts h2,
.little_texts h3 {
    position: relative;
    padding: 0.5rem 1rem;
    padding-left: 1.5rem;
    box-sizing: border-box;
    border-radius: .35rem;
    margin: 0.8rem 0;
    font-size: 1.5rem;
    line-height: 1.5em;
    font-weight: 700;
}

.little_texts h1 { background: #e5edff; color: #007bff; }
.little_texts h2 { background: #f3e7ff; color: #7f00ff; }
.little_texts h3 { background: #ffe7ec; color: #ff0035; }

.little_texts h1::before,
.little_texts h2::before,
.little_texts h3::before {
    content: "";
    position: absolute;
    background: #ffffff;
    width: 4px;
    height: 70%;
    border-radius: 10rem;
    top: 50%;
    left: .95rem;
    transform: translate(-50%, -50%);
}

.little_texts h4,
.little_texts h5,
.little_texts h6 {
    font-size: 1.5rem;
    line-height: 1.5em;
    color: #373737;
    font-weight: 700;
    margin: 0.8rem 0;
}

.little_texts h4 { border-bottom: 1px solid #bfbfbf; }
.little_texts h5 { border-bottom: 1px dashed #bfbfbf; }

.little_texts b { font-weight: 700; }
.little_texts s { color: #ff9191; }
.little_texts i { font-style: normal; color: #575757; }

.little_texts iframe {
    width: 100%;
    height: 350px;
    border-radius: 25px;
    border: 2px solid #d9d9d9d1;
    box-shadow: 2px 1px 15px rgb(36 37 38 / 44%);
    margin: 20px 0;
}

.little_texts code {
    padding: 0.2rem 0.3rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    color: #ff5916;
    background-color: rgb(255 241 221);
    font-family: var(--lg-font-serif);
    font-weight: 700;
    margin: 0 .3rem;
}

.little_texts quote {
    display: block;
    width: 100% !important;
    padding: 1rem;
    border-left: 4px solid #fd7e14;
    border-radius: .35rem;
    color: #fd7e14 !important;
    background-color: rgba(253, 126, 20, .1) !important;
    box-sizing: border-box;
    font-weight: 700;
    line-height: 1.5em;
}

.little_texts hr {
    height: 5px;
    border: none;
    border-top: 4px dotted #ffa1a7;
    text-align: center;
    width: 75%;
    margin: 35px auto;
}

.little_texts video {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0px 6px 20px rgb(122 122 122 / 35%);
}

.line {
    padding: 1rem 0 1rem;
    border-top: 1px solid #e3e3e3;
    width: 90%;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    color: #b5b5b5;
    margin: 0 auto;
}

.line-top {
    margin: 2rem auto;
    border-top: 1px solid #e3e3e3;
    width: 90%;
}