/* ===== 详情页专属样式 ===== */

/* ---------- 新版：顶区横幅 + 信息条 + 主栏 / 侧栏 ---------- */
.detail-shell {
    padding-bottom: 40px;
}

/* 顶行：左海报 + 海报下元信息 | 右：标题 / 播放列表 / 剧情简介 */
.detail-top-split {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 28px 36px;
    align-items: start;
    margin: 20px 0 28px;
}

.detail-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    
}

/* 海报下方纯文本元信息（无卡片/色块，仅保留与海报间距） */
.detail-meta-plain {
    align-self: stretch;
    width: 100%;
    margin-top: 12px;
}

.detail-meta-plain p {
    margin: 0.25em 0;
}

.detail-info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.detail-info-stack > .surface-panel {
    margin-bottom: 0;
}

.detail-info-head {
    padding-top: 22px;
}

.detail-info-title {
    margin-bottom: 14px;
}

.detail-info-tags {
    margin-top: 0;
}

.detail-info-actions {
    margin-top: 20px;
    flex-wrap: wrap;
}

.detail-info-actions .gradient-btn {
    /* flex: 1 1 200px; */
    min-width: 160px;
}

.detail-info-actions .detail-fav-btn {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 12px 18px;
    border-radius: 999px;
}

.detail-top-split .detail-hero {
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
}

.detail-hero-poster-only .detail-hero-inner {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 20px;
}

.detail-hero-poster-only .detail-poster-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.detail-hero {
    position: relative;
    margin: 20px 0 28px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    isolation: isolate;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.detail-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(32px) saturate(1.12);
    transform: scale(1.1);
    opacity: 0.5;
}

.detail-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(6, 10, 22, 0.94) 0%,
        rgba(10, 16, 32, 0.88) 42%,
        rgba(8, 14, 28, 0.96) 100%
    );
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 28px 32px;
    align-items: flex-start;
}

.detail-poster-card {
    flex: 0 0 auto;
    width: min(280px, 42vw);
    max-width: 280px;
}

.detail-poster-card .poster-container {
    height: auto;
    aspect-ratio: 2 / 3;
    max-height: 420px;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.detail-kicker {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 8px;
    opacity: 0.95;
}

.surface-panel {
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.surface-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text);
}

.meta-strip .meta-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.meta-chip {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-chip-label {
    font-size: 12px;
    color: var(--text-muted);
}

.meta-chip-value {
    font-size: 15px;
    color: var(--text-secondary);
}

.meta-chip-wide {
    grid-column: span 1;
}

.meta-people {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-people-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    line-height: 1.75;
    font-size: 14px;
}

.meta-people-label {
    color: var(--text-muted);
    min-width: 40px;
}

.meta-people-value {
    color: var(--text-secondary);
    flex: 1;
}

.synopsis-panel .short-desc {
    margin: 0;
}

.quote-ico {
    color: var(--primary);
    margin-right: 8px;
    opacity: 0.7;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

.detail-main-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.detail-aside-col {
    position: sticky;
    top: 88px;
    align-self: start;
}

.detail-aside-rank .module-header {
    margin-bottom: 12px;
}

.detail-aside-rank-sub {
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .detail-top-split {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .detail-top-split .detail-hero-poster-only {
        min-height: 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside-col {
        position: static;
    }
}

@media (max-width: 768px) {
    .detail-hero-inner {
        padding: 20px 18px;
        justify-content: center;
    }

    .detail-poster-card {
        width: 200px;
        max-width: 100%;
        margin: 0 auto;
    }

    .detail-info-head {
        text-align: center;
    }

    .detail-info-tags,
    .category-tags {
        justify-content: center;
    }

    .detail-info-actions {
        justify-content: center;
    }
}

/* 两栏布局（旧版兼容，当前模板未使用） */
.detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* 左侧面板 */
.left-panel {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    align-self: start;
}

.poster-container {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
}

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

.series-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-brand);
    color: white;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: none;
    z-index: 9;
}

.movie-info-compact {
    padding: 20px;
}

.movie-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    text-align: left;
}

/* 竖排信息样式 */
.info-vertical {
    margin: 15px 0 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-label {
    width: 70px;
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 可点击链接样式（去掉下划线） ===== */
.info-value-link {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
}

.info-value-link:hover {
    color: var(--primary) !important;
}

.info-value-link:visited {
    color: var(--text-secondary);
}

.actor-link {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
}

.actor-link:hover {
    color: var(--primary) !important;
}

.actor-link:visited {
    color: var(--text-secondary);
}

/* 分类标签样式 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: var(--surface-primary-soft);
    border: 1px solid rgba(34, 211, 238, 0.45);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.category-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-tag:visited {
    color: var(--primary);
}

.category-tag:hover:visited {
    color: white;
}

.update-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
    border-left: 4px solid var(--secondary);
    padding-left: 12px;
}

.short-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.gradient-btn {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

.gradient-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.outline-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.card-module {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 20px 24px;
    border: 1px solid var(--border);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.module-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.module-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

/* 线路 tabs */
.route-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.route-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.route-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

.route-btn:hover {
    border-color: var(--primary);
}

/* 播放列表 - 按线路分组 */
.route-group {
    display: none;
}

.route-group.active-group {
    display: block;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.episode-play-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 10px 4px;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.episode-play-card:hover {
    border-color: var(--primary);
    background: #252542;
}

.episode-play-card .num {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.episode-play-card .name {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下载列表 */
.episode-download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.episode-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    transition: 0.2s;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-item:hover {
    border-color: var(--primary);
}

.episode-name {
    font-weight: 600;
    color: white;
    min-width: 80px;
}

.episode-name i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 14px;
}

.episode-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-thunder, .btn-copy {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid;
}

.btn-thunder {
    color: #ffaa00;
    border-color: #ffaa00;
}

.btn-thunder:hover {
    background: #ffaa00;
    color: black;
}

.btn-thunder.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-copy {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-copy:hover {
    background: var(--primary);
    color: black;
}

/* 排行榜 */
.rank-list {
    list-style: none;
    margin-top: 6px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.rank-item:hover {
    background: var(--surface-primary-softer);
}

.rank-number {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
    border: 1px solid var(--border);
}

.rank-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-title {
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.rank-badge {
    background: #2f2f4a;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 12px;
    color: #ffaa00;
    margin-right: 10px;
}

.rank-score {
    color: var(--text-muted);
    font-size: 14px;
}

.rank-score i {
    color: #ffaa00;
    margin-right: 4px;
}

/* 移动端适配 */
@media (max-width: 1000px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .left-panel {
        margin-bottom: 20px;
    }

    .poster-container {
        height: 400px;
    }

    .movie-title {
        font-size: 24px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .gradient-btn, .outline-btn {
        width: 100%;
        padding: 12px;
    }

    .episode-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .episode-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rank-info {
        flex-wrap: wrap;
    }

    .card-module {
        padding: 15px;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .route-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .route-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .poster-container {
        height: 350px;
    }

    .movie-title {
        font-size: 20px;
    }

    .rank-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-right: 10px;
    }

    .rank-title {
        font-size: 14px;
    }

    .rank-badge {
        font-size: 11px;
        padding: 2px 6px;
    }

    .rank-score {
        font-size: 12px;
    }
}

/* ===== 评论模块样式 ===== */
.comment-module {
    margin-top: 20px;
}

.comment-count {
    color: var(--primary);
    font-size: 14px;
}

/* 评论表单 */
.comment-form {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.comment-form-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* 昵称提示样式 */
.nickname-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--surface-primary-soft);
    border-radius: 8px;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px dashed var(--primary);
}

.nickname-tip i {
    font-size: 16px;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 100px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

.captcha-refresh {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.comment-submit-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

.comment-cancel-reply {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s;
}

.comment-cancel-reply:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 评论列表 */
.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

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

.comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 默认头像样式 */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
}

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

.comment-user-name {
    font-weight: 600;
    color: var(--primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 10px;
    word-break: break-word;
    padding-left: 48px;
}

.comment-actions {
    display: flex;
    gap: 20px;
    padding-left: 48px;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.comment-action:hover {
    color: var(--primary);
}

.comment-action i {
    font-size: 14px;
}

.comment-liked {
    color: #ff4d4d !important;
}

/* 回复区域 */
.comment-replies {
    margin-left: 48px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--border);
}

.reply-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.reply-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

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

.reply-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.reply-to {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 5px;
}

.reply-target {
    color: var(--primary);
    font-size: 14px;
}

.reply-content {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    word-break: break-word;
    padding-left: 38px;
}

.reply-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* 评论分页 */
.comment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    padding: 8px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 16px;
}

/* 评论成功提示 */
.comment-success-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid var(--primary);
    z-index: 9999;
    text-align: center;
    animation: fadeInOut 3s ease forwards;
}

.comment-success-tip i {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 10px;
}

.comment-success-tip .nickname {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -30%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -70%); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nickname-tip {
        font-size: 12px;
        padding: 8px 12px;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .reply-avatar {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .comment-content {
        padding-left: 44px;
    }

    .comment-actions {
        padding-left: 44px;
    }

    .comment-replies {
        margin-left: 44px;
    }

    .captcha-group {
        flex-wrap: wrap;
    }

    .captcha-input {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .comment-submit-btn,
    .comment-cancel-reply {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comment-user-name {
        font-size: 14px;
    }

    .comment-content {
        font-size: 14px;
        padding-left: 0;
        margin-top: 10px;
    }

    .comment-actions {
        padding-left: 0;
        gap: 15px;
    }

    .comment-replies {
        margin-left: 20px;
        padding-left: 10px;
    }

    .reply-content {
        padding-left: 32px;
    }

    .reply-header {
        flex-wrap: wrap;
        gap: 5px;
    }

    .reply-user {
        flex-wrap: wrap;
    }
}