
.comments-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.comments-container {
    background: #ffffff;
    border-radius: clamp(1rem, 5vw, 1.75rem);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: clamp(1rem, 0vw, 2rem) clamp(1rem, 0vw, 2rem);
    transition: all 0.2s;
}

.comments-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eff3f8;
}
.comments-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a, #2d3a5e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.comments-count {
    background: #eef2ff;
    color: #1e3a8a;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: clamp(0.7rem, 3.5vw, 0.85rem);
    font-weight: 500;
    white-space: nowrap;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 4vw, 1rem);
}

.comment-item {
    background: #ffffff;
    border-radius: clamp(1rem, 4vw, 1.5rem);
    border: 1px solid #eef2f8;
    padding: clamp(0.9rem, 4vw, 0.5rem) clamp(1rem, 4vw, 0.5rem);
    transition: box-shadow 0.25s ease, border-color 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.comment-item:hover {
    border-color: #cbdde9;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-bottom: 0.7rem;
}
.username {
    font-weight: 650;
    font-size: clamp(0.85rem, 4vw, 1rem);
    background: #f1f4f9;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.2px;
    color: #0c1b33;
}
.purchase-badge {
    font-size: clamp(0.65rem, 3.2vw, 0.75rem);
    background: #f0f3f9;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    color: #2c3e66;
    font-weight: 500;
}
.date {
    font-size:clamp(0.65rem, 3.2vw, 0.75rem);
    color: #7c8ba0;
    margin-left: auto;
}
@media (max-width: 550px) {
    .comment-meta {
        justify-content: space-between;
    }
    .date {
        margin-left: 0;
    }
}

.stars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    margin: 0.6rem 0 0.7rem 0;
}
.star {
    font-size: clamp(1rem, 5vw, 1.2rem);
    color: #d4dcec;
    transition: color 0.1s;
}
.star.filled {
    color: #f5b342;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.rating-text {
    font-size: clamp(0.65rem, 3.5vw, 0.75rem);
    margin-left: 0.3rem;
    background: #f0f4fa;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    color: #3b4b6e;
    font-weight: 500;
}

.comment-text {
    font-size: 15px;
    line-height: 1.5;
    color: #1f2a48;
    margin: 0.8rem 0 0.6rem 0;
    padding-right: 0.25rem;
    word-break: break-word;
}

.replies-section {
    margin-top: clamp(0.8rem, 3.5vw, 1.25rem);
    padding-top: 0.5rem;
    border-top: 1px solid #edf2f9;
}
.replies-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(0.7rem, 3.5vw, 0.8rem);
    font-weight: 600;
    color: #4b5e7e;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}
.replies-title::before {
    content: "💬";
    font-size: clamp(0.75rem, 4vw, 0.9rem);
}
.replies-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.7rem, 3vw, 1rem);
    margin-left: 0;
    width: 100%;
}
.reply-item {
    background: #fafcff;
    padding: clamp(0.7rem, 3.2vw, 1rem) clamp(0.8rem, 3.5vw, 1.2rem);
    font-size: clamp(0.8rem, 3.8vw, 0.9rem);
    transition: background 0.2s;
    word-break: break-word;
}
.reply-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 1rem;
    margin-bottom: 0.4rem;
}
.reply-author {
    font-weight: 650;
    font-size: clamp(0.7rem, 3.5vw, 0.8rem);
    background: #eef2fa;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    color: #1f2f4e;
}
.reply-date {
    font-size: clamp(0.6rem, 3vw, 0.7rem);
    color: #8c9bb0;
}
.reply-content {
    color: #2a3958;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 0.2rem;
    padding-left: 0.3rem;
}

.no-replies {
    font-size: clamp(0.7rem, 3.5vw, 0.8rem);
    color: #8c9bb0;
    padding: 0.6rem 0 0.4rem 0.8rem;
    font-style: normal;
    background: #fbfdff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.no-replies::before {
    content: "✨";
    font-size: 0.9rem;
}

/* 更优雅的分割装饰 */
.graceful-hr {
    margin: 0.2rem 0 0.2rem;
}

/* 响应式优化：超大屏幕适当留白，但保持整洁 */
@media (min-width: 1400px) {
    .comment-item {
        padding: 1rem;
    }
}

/* 移动端专用微调 (小于480px) */
@media (max-width: 480px) {
    .comments-container {
        border-radius: 1.25rem;
        padding: 1rem 1rem;
    }
    .comment-item {
        padding: 1rem 1rem;
    }
    .reply-item {
        padding: 0.7rem 0.9rem;
    }
    .replies-title {
        margin-bottom: 0.55rem;
    }
}

/* 平板横屏舒适度调整 */
@media (min-width: 768px) and (max-width: 1024px) {
    .comments-container {
        padding: 1.6rem 2rem;
    }
    .comment-text {
        font-size: 0.95rem;
    }
}

/* 辅助动画/点缀 */
.star {
    transition: transform 0.1s ease;
}
.comment-item:hover .star {
    transform: scale(1.02);
}

/* 简易卡片分隔感 */
.comment-item + .comment-item {
    margin-top: 0;
}