/* Page-specific styles for zouxin.php. */
main.heart-comments-page,
main.heart-comments-page * {
    font-family: var(--font-main) !important;
}

.heart-hero,
.heart-stat,
.heart-card,
.heart-empty {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}
main.heart-comments-page {
                width: 100%;
            }

            

            .heart-wrap {
                width: 100%;
                margin: 0 auto;
                color: var(--text-body);
                padding-top: 10px;
                font-family: var(--font-main);
            }

            .heart-hero {
                position: relative;
                min-height: 62px;
                margin: 8px 0 18px;
                padding: 0 18px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                border-radius: var(--radius);
                border: 1px solid var(--border-color);
                
                box-shadow: 0 12px 30px rgba(83, 62, 38, .045);
                overflow: hidden;
            }

            :root[data-theme="dark"] .heart-hero {
                border-color: var(--border-color);
                
                box-shadow: var(--control-shadow);
            }

            .heart-hero::before {
                display: none;
            }

            :root[data-theme="dark"] .heart-hero::before {
                display: none;
            }

            .heart-hero-title {
                position: relative;
                z-index: 1;
                display: flex;
                align-items: center;
                gap: 13px;
                min-width: 0;
                width: 100%;
            }

            .heart-main-icon {
                width: 31px;
                height: 31px;
                flex: 0 0 auto;
                color: rgba(138, 96, 53, .68);
                filter: none;
            }

            :root[data-theme="dark"] .heart-main-icon,
            :root[data-theme="dark"] .heart-stat-icon,
            :root[data-theme="dark"] .heart-quote {
                color: var(--accent-brown);
            }

            .heart-main-icon svg,
            svg.heart-main-icon {
                display: block;
            }

            .heart-hero-copy {
                min-width: 0;
                display: flex;
                align-items: center;
                gap: 14px;
                line-height: 1;
            }

            .heart-hero-title h1 {
                margin: 0;
                color: #3f352c;
                font-size: 22px;
                line-height: 1.2;
                font-weight: 700;
                letter-spacing: .03em;
                white-space: nowrap;
            }

            :root[data-theme="dark"] .heart-hero-title h1,
            :root[data-theme="dark"] .heart-stat-text strong,
            :root[data-theme="dark"] .heart-name {
                color: var(--text-body);
            }

            .heart-hero-title i {
                width: 1px;
                height: 16px;
                
                font-style: normal;
                flex: 0 0 auto;
            }

            

            .heart-hero-title span {
                color: #8f8172;
                font-size: 13px;
                line-height: 1.4;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            :root[data-theme="dark"] .heart-hero-title span,
            :root[data-theme="dark"] .heart-intro,
            :root[data-theme="dark"] .heart-stat-text span,
            :root[data-theme="dark"] .heart-date,
            :root[data-theme="dark"] .heart-comment,
            :root[data-theme="dark"] .heart-source,
            :root[data-theme="dark"] .heart-empty {
                color: var(--text-body);
            }

            .heart-hero-arrow {
                display: none;
            }

            .heart-intro {
                margin: 0 0 18px;
                color: #5f5349;
                font-size: 14px;
                line-height: 2;
                letter-spacing: .02em;
            }

            .heart-intro p {
                margin: 0;
            }

            .heart-stats {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 12px;
                margin: 0 0 14px;
            }

            .heart-stat {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 15px;
                min-height: 74px;
                border: 1px solid var(--border-color);
                border-radius: var(--radius);
                
                box-shadow: 0 10px 24px rgba(80, 61, 42, .045);
                backdrop-filter: blur(8px);
            }

            :root[data-theme="dark"] .heart-stat,
            :root[data-theme="dark"] .heart-card,
            :root[data-theme="dark"] .heart-empty {
                border-color: var(--border-color);
                
                box-shadow: var(--control-shadow);
            }

            .heart-stat-icon {
                width: 42px;
                height: 42px;
                border-radius: var(--radius-circle);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                color: #8d7259;
                
                border: 1px solid var(--border-color);
            }

            :root[data-theme="dark"] .heart-stat-icon {
                border-color: var(--border-color);
                
            }

            .heart-stat-icon svg {
                width: 21px;
                height: 21px;
            }

            .heart-stat-text {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .heart-stat-text span {
                color: #6b5d50;
                font-size: 13px;
            }

            .heart-stat-text strong {
                color: #42382f;
                font-family: Georgia, "Times New Roman", serif;
                font-size: 28px;
                line-height: 1;
                font-weight: 600;
            }

            .heart-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
                margin-top: 2px;
                width: 100%;
            }

            .heart-card {
                position: relative;
                display: block;
                width: 100%;
                min-height: 150px;
                margin: 0;
                break-inside: avoid;
                -webkit-column-break-inside: avoid;
                page-break-inside: avoid;
                padding: 16px 18px 14px;
                border: 1px solid var(--border-color);
                border-radius: var(--radius);
                
                box-shadow: var(--control-shadow);
                backdrop-filter: blur(8px);
                overflow: hidden;
                transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
            }

            .heart-card:hover {
                transform: translateY(-2px);
                border-color: var(--border-color);
                
                box-shadow: var(--control-hover-shadow);
            }

            :root[data-theme="dark"] .heart-card:hover {
                border-color: var(--border-color);
                
            }

            .heart-card::before {
                content: "";
                position: absolute;
                right: -40px;
                top: -55px;
                width: 140px;
                height: 140px;
                border-radius: var(--radius-circle);
                
                pointer-events: none;
            }

            

            .heart-card-head {
                position: relative;
                z-index: 1;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 10px;
            }

            .heart-author {
                display: flex;
                align-items: center;
                gap: 10px;
                min-width: 0;
            }

            .heart-avatar {
                width: 43px;
                height: 43px;
                border-radius: var(--radius-circle);
                overflow: hidden;
                flex: 0 0 auto;
                border: 1px solid var(--border-color);
                background: var(--bg-soft);
                box-shadow:
                    0 5px 12px rgba(75, 56, 37, .07),
                    0 0 0 3px rgba(255, 252, 246, .55);
                display: flex;
                align-items: center;
                justify-content: center;
                color: #7a654f;
                font-weight: 600;
            }

            :root[data-theme="dark"] .heart-avatar {
                color: var(--text-body);
                border-color: var(--border-color);
                background: var(--bg-card);
                box-shadow: 0 0 0 3px rgba(30, 30, 30, .45);
            }

            .heart-avatar img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
            }

            .heart-name {
                min-width: 0;
                color: #3f362f;
                font-size: 16px;
                line-height: 1.2;
                font-weight: 650;
                letter-spacing: .03em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .heart-date {
                color: #a19487;
                font-size: 12px;
                white-space: nowrap;
                font-family: Georgia, "Times New Roman", serif;
            }

            .heart-comment {
                position: relative;
                z-index: 1;
                display: grid;
                grid-template-columns: 34px minmax(0, 1fr);
                gap: 6px;
                min-height: 56px;
                margin: 4px 0 13px;
                color: #5d5146;
                font-size: 13px;
                line-height: 1.9;
                letter-spacing: .02em;
            }

            .heart-quote {
                color: rgba(142, 112, 75, .28);
                font-size: 42px;
                line-height: .9;
                font-family: Georgia, "Times New Roman", serif;
                transform: translateY(4px);
                user-select: none;
            }

            .heart-source {
                position: relative;
                z-index: 1;
                display: grid;
                grid-template-columns: auto minmax(0, 1fr);
                align-items: center;
                column-gap: 8px;
                min-width: 0;
                padding-top: 2px;
                color: #8e8174;
                font-size: 12px;
            }

            .heart-source span {
                flex: 0 0 auto;
                white-space: nowrap;
                line-height: 24px;
            }

            .heart-source a {
                position: relative;
                display: block;
                width: 100%;
                max-width: none;
                min-width: 0;
                min-height: 24px;
                padding: 2px 30px 2px 8px;
                border-radius: var(--radius);
                color: #7a6654;
                text-decoration: none;
                border: 1px solid var(--border-color);
                background: var(--bg-soft);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                line-height: 20px;
                transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
            }

            :root[data-theme="dark"] .heart-source a {
                color: var(--text-body);
                border-color: var(--border-color);
                background: var(--bg-soft);
            }

            .heart-source a::after {
                content: "";
                position: absolute;
                right: 9px;
                top: 50%;
                width: 6px;
                height: 6px;
                border-top: 1.4px solid var(--border-color);
                border-right: 1.4px solid var(--border-color);
                transform: translateY(-50%) rotate(45deg);
                opacity: .58;
                transition: right .18s ease, opacity .18s ease;
            }

            .heart-source a:hover {
                color: var(--accent-brown);
                background: var(--control-hover-bg);
                border-color: var(--border-color);
                box-shadow: 0 7px 16px rgba(78, 59, 38, .075);
                transform: translateY(-1px);
            }

            :root[data-theme="dark"] .heart-source a:hover {
                color: var(--accent-brown);
                border-color: var(--border-color);
                background: var(--control-hover-bg);
                box-shadow: var(--control-hover-shadow);
            }

            .heart-source a:hover::after {
                right: 7px;
                opacity: .9;
            }

            .heart-empty {
                grid-column: 1 / -1;
                padding: 42px 18px;
                border: 1px solid var(--border-color);
                border-radius: var(--radius);
                
                color: var(--text-secondary);
                text-align: center;
                font-size: 14px;
            }

            @media (max-width: 800px) {

                .heart-hero {
                    min-height: 68px;
                    margin: 6px 0 16px;
                    padding: 12px 15px;
                    border-radius: var(--radius);
                    align-items: center;
                }

                .heart-hero::before {
                    display: none;
                }

                .heart-hero-title {
                    gap: 12px;
                    align-items: center;
                }

                .heart-main-icon {
                    width: 28px;
                    height: 28px;
                }

                .heart-hero-copy {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 4px;
                    line-height: normal;
                }

                .heart-hero-title h1 {
                    font-size: 20px;
                    line-height: 1.25;
                }

                .heart-hero-title i {
                    display: none;
                }

                .heart-hero-title span {
                    font-size: 12px;
                    line-height: 1.45;
                    white-space: normal;
                    overflow: visible;
                    text-overflow: clip;
                }

                .heart-stats {
                    grid-template-columns: repeat(3, minmax(0, 1fr));
                    gap: 10px;
                }

                .heart-stat {
                    min-height: auto;
                    padding: 12px 8px;
                    gap: 8px;
                    flex-direction: column;
                    justify-content: center;
                    text-align: center;
                }

                .heart-stat-icon {
                    width: 36px;
                    height: 36px;
                }

                .heart-stat-icon svg {
                    width: 18px;
                    height: 18px;
                }

                .heart-stat-text strong {
                    font-size: 24px;
                }

                .heart-grid {
                    grid-template-columns: 1fr;
                    gap: 10px;
                }
            }

            @media (max-width: 480px) {
                .heart-intro {
                    font-size: 13px;
                    line-height: 1.9;
                }

                .heart-stats {
                    gap: 8px;
                }

                .heart-stat {
                    padding: 10px 6px;
                    border-radius: var(--radius);
                }

                .heart-stat-text span {
                    font-size: 12px;
                }

                .heart-stat-text strong {
                    font-size: 22px;
                }

                .heart-card {
                    padding: 15px 14px 13px;
                }

                .heart-source {
                    column-gap: 6px;
                    font-size: 12px;
                }

                .heart-source a {
                    padding-right: 26px;
                }

                .heart-comment {
                    grid-template-columns: 28px minmax(0, 1fr);
                    font-size: 13px;
                }

                .heart-quote {
                    font-size: 36px;
                }

                .heart-actions {
                    margin-top: 10px;
                }
            }
