:root {
    --nav-height: 60px;
    --layout-gap: 20px;
    --page-width: 1280px;

    --font-xxs: 10px;
    --font-xs: 12px;
    --font-sm: 13px;
    --font-base: 14px;
    --font-md: 15px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 21px;
    --font-3xl: 24px;
    --font-4xl: 32px;

    --leading-tight: 1.2;
    --leading-snug: 1.4;
    --leading-normal: 1.6;
    --leading-body: 1.5;
    --leading-relaxed: 1.8;
    --leading-loose: 1.85;
    --leading-none: 1;

    --tracking-sm: 0.3px;
    --tracking-md: 0.4px;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    --color-text-main: #cbd5e0;
    --color-text-muted: #a0aec0;
    --color-text-secondary: rgba(255, 255, 255, .55);
    --color-link: #a0aec0;
    --color-link-hover: #f58220;
    --color-link-hover-shadow: rgba(255, 99, 71, .6);
    --color-glass-border: rgba(255, 255, 255, .08);
    --color-glass-bg: rgba(255, 255, 255, 0.01);
    --color-glass-bg-hover: rgba(255, 255, 255, 0.02);
    --color-accent-blue: #00bcd4;
    --color-accent-orange: #f58220;
    --color-accent-purple: #c4b5fd;
    --color-highlight: #d27f03;
    --color-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

    font-family: "落霞孤鹜", "LXGW WenKai", "霞鹜文楷", sans-serif;

    background:
            radial-gradient(ellipse at 20% 20%,
                rgba(40, 55, 110, 0.35),
                transparent 45%),
            radial-gradient(ellipse at 80% 80%,
                rgba(100, 40, 70, 0.25),
                transparent 45%),
            linear-gradient(135deg,
                #05070d 0%,
                #0a0f1c 50%,
                #03050a 100%
            );
    color: var(--color-text-main);
}

body,
button,
input,
textarea,
select {
    font-family: "LXGW WenKai", "霞鹜文楷", "落霞孤鹜", sans-serif;
}

.star-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0.01;
    }

    50% {
        opacity: 1;
    }
}

#stars,
#stars2,
#stars3 {
    position: absolute;
    top: 0;
    left: 0;
}

#stars {
    width: 1px;
    height: 1px;
    box-shadow:
        5vw 5vh #fff, 12vw 18vh #fff, 2vw 25vh rgba(255, 255, 255, .7),
        8vw 35vh #fff, 15vw 45vh rgba(255, 255, 255, .6), 18vw 55vh #fff,
        10vw 65vh #fff, 20vw 75vh #fff, 5vw 85vh rgba(255, 255, 255, .5),
        12vw 95vh #fff, 22vw 8vh #fff, 30vw 15vh rgba(255, 255, 255, .6),
        25vw 28vh #fff, 35vw 38vh #fff, 28vw 48vh rgba(255, 255, 255, .7),
        40vw 58vh #fff, 32vw 68vh #fff, 42vw 78vh #fff,
        35vw 88vh #fff, 45vw 98vh #fff;
    animation: blink 6s infinite ease-in-out;
}

#stars2 {
    width: 2px;
    height: 2px;
    box-shadow:
        8vw 12vh #fff, 28vw 38vh #667eea,
        48vw 62vh rgba(255, 255, 255, .7), 68vw 88vh rgba(102, 126, 234, .6),
        88vw 15vh #fff, 18vw 45vh rgba(102, 126, 234, .7), 38vw 75vh #fff;
    animation: blink 10s infinite ease-in-out;
}

#stars3 {
    width: 3px;
    height: 2px;
    box-shadow:
        10vw 2vh rgba(255, 255, 255, 0.8), 25vw 5vh #667eea, 42vw 3vh rgba(255, 255, 255, 0.9), 55vw 7vh #fff, 70vw 2vh rgba(102, 126, 234, 0.8), 88vw 4vh #fff, 95vw 6vh rgba(255, 255, 255, 0.7), 18vw 1vh #fff, 63vw 4vh #667eea, 78vw 8vh #fff,
        4vw 15vh #fff, 16vw 28vh rgba(255, 255, 255, 0.7), 8vw 42vh #667eea, 22vw 50vh #fff, 13vw 68vh rgba(102, 126, 234, 0.6), 5vw 82vh #fff, 19vw 92vh rgba(255, 255, 255, 0.8),
        28vw 18vh #fff, 36vw 32vh rgba(102, 126, 234, 0.7), 48vw 40vh #fff, 32vw 58vh #fff, 44vw 72vh rgba(255, 255, 255, 0.5), 38vw 85vh #667eea, 49vw 94vh #fff,
        54vw 14vh rgba(255, 255, 255, 0.7), 67vw 22vh #fff, 59vw 36vh #667eea, 72vw 48vh rgba(102, 126, 234, 0.8), 61vw 60vh #fff, 75vw 78vh #fff, 68vw 90vh rgba(255, 255, 255, 0.6),
        82vw 16vh #fff, 94vw 26vh rgba(102, 126, 234, 0.7), 86vw 38vh #fff, 98vw 52vh #fff, 80vw 64vh rgba(255, 255, 255, 0.5), 92vw 80vh #667eea, 85vw 95vh #fff,
        3vw 30vh rgba(255, 255, 255, 0.6), 24vw 24vh #fff, 40vw 18vh rgba(102, 126, 234, 0.5), 57vw 29vh #fff, 79vw 35vh #fff, 96vw 12vh rgba(255, 255, 255, 0.7),
        11vw 55vh #667eea, 30vw 65vh rgba(255, 255, 255, 0.8), 52vw 52vh #fff, 74vw 56vh #fff, 89vw 48vh rgba(102, 126, 234, 0.6),
        15vw 76vh #fff, 34vw 80vh rgba(255, 255, 255, 0.6), 58vw 84vh #667eea, 71vw 88vh #fff, 91vw 84vh rgba(255, 255, 255, 0.7),
        50vw 66vh #fff, 66vw 15vh rgba(255, 255, 255, 0.5), 83vw 70vh #fff, 2vw 96vh #667eea, 97vw 97vh #fff;
    animation: blink 7s infinite ease-in-out;
    animation-delay: 3s;
    will-change: opacity;
}

.top-indicator-bar {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-logo {
    color: var(--color-white);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    height: var(--nav-height);
    /* 锁定高度与导航栏一致 */
    text-decoration: none;
    cursor: pointer;
}

.nav-logo-link:hover .nav-logo {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a,
.resume-link {
    color: rgba(255, 255, 255, .7);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all .3s ease;
}

.nav-links a:hover,
.resume-link:hover {
    color: var(--color-link-hover);
    text-shadow: 0 0 8px var(--color-link-hover-shadow);
}

.main-view-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slogan-text {
    width: var(--page-width);
    max-width: 95%;
    min-height: 28px;
    flex-shrink: 0;
    margin: 10px auto 5px;
    padding-left: 10px;
    color: var(--color-text-secondary);
    font-size: var(--font-base);
    font-style: italic;
    letter-spacing: 1px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.content-container,
.slogan-text {
    width: min(var(--page-width), calc(100% - 40px));
}

.content-container {
    max-width: 95%;
    flex: 1;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;
}

.main-body {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    display: flex;
    gap: var(--layout-gap);
    align-items: stretch;
}

.left-sidebar {
    width: 240px;
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.article-block {
    width: 680px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.article-block .sub-card {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: stable;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-me-block {
    flex-shrink: 0;
}

.whisper-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.whisper-stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.glass-block {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: var(--color-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px;
    mask-image: radial-gradient(ellipse at center, black 70%, rgba(0, 0, 0, 0.8) 88%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, rgba(0, 0, 0, 0.8) 88%, transparent 100%);
    transition: background 0.4s ease;
}

.glass-block:hover {
    z-index: 1;
    transform: none !important;
    background: var(--color-glass-bg-hover);
    border: none !important;
    box-shadow: none !important;
}

.glass-block--compact {
    padding: 20px;
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* 航海罗盘：压缩高度 */
.left-sidebar>.glass-block:first-child {
    padding: 12px 20px;
}

/* 航海罗盘标题 */
.left-sidebar>.glass-block:first-child .sidebar-meta-category {
    margin-bottom: 8px;
}

/* 菜单项之间的间距缩小 */
.left-sidebar>.glass-block:first-child .nav-menu-list {
    gap: 4px;
}

/* 菜单文字行高和上下留白缩小 */
.left-sidebar>.glass-block:first-child .nav-menu-list a {
    padding: 4px 12px;
    line-height: 1.2;
}

.nav-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-menu-list a {
    padding: 8px 12px;
    color: var(--color-text-main);
    border-radius: 8px;
    font-size: var(--font-md);
    text-decoration: none;
    transition: all .3s;
}

.nav-menu-list a:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--color-link-hover);
}

.post-meta-category {
    margin-bottom: 0;
    color: var(--color-accent-blue);
    font-size: var(--font-xs);
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.post-gradient-title {
    margin: 0 0 10px;
    font-size: var(--font-2xl);
    font-weight: var(--fw-bold);
    background: linear-gradient(135deg, #ffffff 0%, #70a1ff 50%, #00d2d3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 10px rgba(0, 210, 211, 0.6)) drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.8));
}

.post-summary-title {
    margin: 0 0 5px;
    font-size: var(--font-xl);
}

.post-meta-details {
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.post-meta-details--compact {
    margin-bottom: 10px;
}

.post-content {
    color: var(--color-text-main);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
}

.post-summary {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 6px;
}

.post-summary-image {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.post-summary-text {
    flex: 1;
    min-width: 0;
}

.more-link-btn {
    color: var(--color-link);
    font-size: var(--font-sm);
    font-weight: bold;
    text-decoration: none;
    transition: all .3s;
    letter-spacing: 1px;
}

.more-link-btn:hover {
    color: var(--color-link-hover);
    text-shadow: 0 0 8px var(--color-link-hover-shadow);
}

.cover-placeholder {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, .15);
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.movie-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.movie-description {
    flex: 1;
    min-width: 0;
    color: var(--color-text-main);
    line-height: 1.6;
}

.movie-title-heading {
    color: var(--color-white);
    font-size: 16px;
}

.avatar-with-text {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #f7fafc;
    font-size: var(--font-lg);
    font-weight: bold;
}

.avatar-placeholder {
    width: 65px;
    height: 65px;
    flex-shrink: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

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

.about-me {
    color: var(--color-text-main);
    font-size: var(--font-base);
    line-height: var(--leading-relaxed);
}

.sidebar-quote {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: var(--font-xs);
}

.sidebar-quote span {
    color: var(--color-white);
    font-weight: bold;
}

.whisper-item {
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 2px solid rgba(196, 181, 253, .3);
}

.whisper-text {
    color: var(--color-text-main);
    font-size: var(--font-sm);
    line-height: var(--leading-normal);
    white-space: pre-line;
}

.whisper-time {
    margin-top: 6px;
    color: rgba(255, 255, 255, .3);
    font-size: var(--font-xxs);
    letter-spacing: .5px;
}

.article-block .sub-card::-webkit-scrollbar,
.whisper-stream::-webkit-scrollbar {
    width: 4px;
}

.article-block .sub-card::-webkit-scrollbar-thumb,
.whisper-stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
}

.article-block .sub-card::-webkit-scrollbar-thumb:hover,
.whisper-stream::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 99, 71, .4);
}

.bottom-container {
    width: 100%;
    flex-shrink: 0;
    padding: 10px 0 15px;
    text-align: center;
}

.bottom-title {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .4);
    font-size: var(--font-xs);
    letter-spacing: 4px;
}

.site-run-time {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .65);
    font-size: var(--font-xs);
    letter-spacing: 1px;
}

.site-statistics {
    color: rgba(255, 255, 255, .4);
    font-size: var(--font-xxs);
    letter-spacing: 1px;
}

#runtime-clock,
#busuanzi_value_site_pv,
#busuanzi_value_site_uv {
    color: var(--color-highlight);
    font-weight: bold;
}

.mouse-star {
    position: fixed;
    z-index: 9999;
    width: 12px;
    height: 12px;
    pointer-events: none;
    background-color: var(--color-white);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    animation: star-fade .8s forwards ease-out;
    will-change: transform, opacity;
}

@keyframes star-fade {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1) rotate(90deg);
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, .8);
    }

    100% {
        transform: translate(-50%, -50%) scale(.2) rotate(180deg);
        opacity: 0;
    }
}

.ambient-glow-1 {
    position: fixed;
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.ambient-glow-2 {
    position: fixed;
    bottom: 10%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 99, 71, 0.1) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
}

.music-player-shell {
    position: fixed;
    top: 78px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
    touch-action: none;
    transition: top 0.2s ease, right 0.2s ease;
}

.music-player-widget {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;

    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 30px;

    border: none !important;
    box-shadow: none !important;

    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.01) 70%,
            transparent 100%
);

    backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

    mask-image: radial-gradient(circle at center,
            black 60%,
            transparent 100%);

    -webkit-mask-image: radial-gradient(circle at center,
            black 65%,
            rgba(0, 0, 0, 0.8) 85%,
            transparent 100%);

    user-select: none;
    cursor: grab;
    will-change: transform;
    transition:
        background 0.3s ease,
        opacity 0.3s ease !important;
    transform: none !important;
}

.music-player-widget.is-collapsed {
    width: 50px;
    padding: 4px;
    border-radius: 999px;
    overflow: hidden;
}

.music-player-widget.is-expanded {
    width: auto;
}

.music-player-widget.is-collapsed .music-info,
.music-player-widget.is-collapsed .music-title,
.music-player-widget.is-collapsed .music-controls {
    display: none;
}

.music-player-widget.is-collapsed .cd-cover {
    width: 42px;
    height: 42px;
    margin: 0;
}

.music-player-widget.is-dragging {
    cursor: grabbing;
}

.cd-cover {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    animation: cdRotate 10s linear infinite;
    animation-play-state: paused;
}

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

.music-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.music-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .65);
    font-size: var(--font-xxs);
    white-space: nowrap;
}

#progressBar {
    width: 140px;
    height: 4px;
    margin: 0;
    appearance: none;
    background: rgba(255, 255, 255, .25);
    border-radius: 10px;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a7f3d0;
    cursor: pointer;
}

@keyframes cdRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.music-title {
    color: #f7fafc;
    font-size: var(--font-xs);
    font-weight: bold;
}

#playBtn {
    background: transparent;
    border: none;
    color: #a7f3d0;
    font-size: var(--font-xs);
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
    transition: color 0.2s;
}

#playBtn:hover {
    color: var(--color-link-hover);
}

html {
    scrollbar-gutter: stable; /* 锁死滚动条占位，切换页面绝对不抖 */
}

@media (max-width: 768px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }

    .main-view-wrapper {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .top-indicator-bar {
        view-transition-name: main-nav;
        height: auto;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        line-height: 1;
    }

    .nav-links a {
        font-size: var(--font-xs);
        display: inline-flex;
        align-items: center;
        line-height: 1;
        padding: 0;
        margin: 0;
    }

    .slogan-text {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        margin: 8px 0;
        padding: 0 15px;
        line-height: 1.5;
        font-size: var(--font-sm);
    }

    .content-container {
        width: 100%;
        padding: 0 15px 30px;
    }

    .main-body {
        display: flex;
        flex-direction: column;
        flex: none;
        width: 100%;
        min-height: auto;
        max-height: none;
    }

    .sidebar {
        order: -1;
        width: 100%;
        height: auto;
    }

    .left-sidebar,
    .article-block {
        width: 100%;
        height: auto;
    }

    .article-block {
        overflow: visible;
    }

    .article-block .sub-card {
        flex: none;
        height: auto;
        overflow: visible;
    }

    .whisper-card {
        min-height: auto;
    }

    .whisper-stream {
        max-height: 240px;
        overflow-y: auto;
    }

    .music-player-shell {
        view-transition-name: music-player;
        right: -6px;
    }

    .music-player-shell.is-collapsed {
        right: -8px;
    }

    .music-player-widget {
        padding: 5px 10px;
        gap: 6px;
        background: rgba(15, 20, 30, 0.72);
    }

    .music-player-widget .music-progress {
        gap: 4px;
        font-size: 9px;
    }

    .music-player-widget #progressBar {
        width: 90px;
    }

    .music-player-widget.is-collapsed {
        width: 46px;
        padding: 4px;
    }

    .music-player-widget .cd-cover {
        width: 26px;
        height: 26px;
    }

    .music-player-widget .music-title {
        font-size: 11px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .music-player-widget #playBtn {
        font-size: 11px;
    }

    .bottom-container {
        position: relative;
        z-index: 10;
        flex-shrink: 0;
        width: 100%;
        margin-top: 30px;
    }
}

/* ================================
   💬 留言板
================================ */

.comments-card {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 20, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.comments-title {
    margin-bottom: 12px;
}

.comments-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 12px;
}

/* 留言区滚动条 */
.comments-list::-webkit-scrollbar {
    width: 5px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* 单条留言 */
.comment-item {
    padding: 10px 11px;
    margin-bottom: 8px;
    background: rgba(10, 15, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    animation: commentFadeIn 0.35s ease;
}

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

.comment-author {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85em;
    font-weight: bold;
}

.comment-content {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86em;
    line-height: 1.55;
    word-break: break-word;
}

.comment-time {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7em;
}

/* 留言区提示文字 */
.comments-empty,
.comments-loading,
.comments-error {
    padding: 18px 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82em;
    text-align: center;
    line-height: 1.6;
}

/* 表单 */
.comment-form {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    outline: none;
    background: rgba(10, 15, 28, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.82em;
    transition: 0.25s ease;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(10, 15, 28, 0.55);
}

.comment-form textarea {
    min-height: 65px;
    max-height: 130px;
    resize: vertical;
}

.comment-form button {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.82em;
    cursor: pointer;
    transition: 0.25s ease;
}

.comment-form button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.comment-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comments-list .comments-error {
    color: #ff7675 !important;
}

.comments-list .comment-author {
    color: #ffffff !important;
}

.comments-list .comment-content {
    color: rgba(255, 255, 255, 0.85) !important;
}

.comments-list .comment-time {
    color: rgba(255, 255, 255, 0.45) !important;
}

.comments-list .comments-loading,
.comments-list .comments-empty,
.comments-list .comments-error {
    color: #d0d0d0 !important;
}