/* 版本: 2508314 - 星空主题001样式包 */
#starry-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

/* 确保页面内容在星空之上 */
body {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* ==========================================================
   互动功能样式 - 星空主题
   ========================================================== */

/* 互动区域 */
.interactions-section {
    margin: 18px 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.interactions-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 互动按钮 */
.interaction-btn {
    background: rgba(108, 117, 125, 0.8);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    backdrop-filter: blur(12px);
}

.interaction-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.25);
}

/* 点赞按钮 */
.interaction-btn[data-type="1"] {
    background: rgba(40, 167, 69, 0.8);
}

.interaction-btn[data-type="1"]:hover {
    background: rgba(33, 136, 56, 0.9);
}

.interaction-btn[data-type="1"].active {
    background: rgba(21, 87, 36, 0.9);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.4);
}

/* 踩按钮 */
.interaction-btn[data-type="2"] {
    background: rgba(220, 53, 69, 0.8);
}

.interaction-btn[data-type="2"]:hover {
    background: rgba(200, 35, 51, 0.9);
}

.interaction-btn[data-type="2"].active {
    background: rgba(114, 28, 36, 0.9);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.4);
}

/* 小丑按钮 */
.interaction-btn[data-type="3"] {
    background: rgba(255, 193, 7, 0.8);
    color: #212529;
}

.interaction-btn[data-type="3"]:hover {
    background: rgba(224, 168, 0, 0.9);
}

.interaction-btn[data-type="3"].active {
    background: rgba(211, 158, 0, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.4);
}

/* 统计数字 */
.interaction-count {
    margin-left: 5px;
    font-weight: bold;
}

/* 帖子统计信息 */
.post-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 14px;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

/* 评论区域 */
.comments-section {
    margin: 12px auto;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.comments-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 18px;
    color: #ffffff;
    border-bottom: 2px solid rgba(0, 123, 255, 0.8);
    padding-bottom: 8px;
}

/* 评论表单 */
.comment-form {
    margin-bottom: 22px;
}

.comment-form textarea {
    width: 100%;
    min-height: 75px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(15px);
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.comment-submit {
    background: rgba(40, 167, 69, 0.8);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 9px;
    transition: background 0.3s ease;
    backdrop-filter: blur(12px);
}

.comment-submit:hover {
    background: rgba(33, 136, 56, 0.9);
}

.comment-submit:disabled {
    background: rgba(108, 117, 125, 0.8);
    cursor: not-allowed;
}

/* 评论列表 */
.comments-container {
    margin-top: 18px;
}

.comment-item {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
    animation: fadeIn 0.3s ease-in;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    backdrop-filter: blur(12px);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.comment-author {
    font-weight: bold;
    color: #87CEEB;
    font-size: 14px;
}

.comment-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.delete-comment {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
    backdrop-filter: blur(12px);
}

.delete-comment:hover {
    background: rgba(200, 35, 51, 0.9);
}

.comment-content {
    color: #ffffff;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 500;
}

.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 18px;
}

/* 查看次数显示 */
.view-count {
    color: #ffffff;
    font-size: 12px;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .interactions-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .interaction-btn {
        justify-content: center !important;
        font-size: 13px !important;
        padding: 7px 14px !important;
    }
    
    .comments-section {
        padding: 16px !important;
        margin: 22px auto !important;
    }
    
    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .post-stats {
        flex-wrap: wrap !important;
        gap: 16px !important;
        font-size: 12px !important;
    }
    
    .comment-content {
        font-size: 13px !important;
    }
    
    .comment-author {
        font-size: 13px !important;
    }
    
    .comment-time {
        font-size: 11px !important;
    }
    
    .comments-title {
        margin-top: 0px;
        font-weight: 600;
        font-size: 16px !important;
    }
    
    .comment-form textarea {
        font-size: 14px !important;
        padding: 11px !important;
    }
    
    .comment-submit {
        font-size: 13px !important;
        padding: 9px 18px !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #87CEEB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
}

.modal-content {
    background: rgba(30, 30, 30, 0.9);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: auto;
    box-sizing: border-box;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content div {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-content button,
.modal-content a {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(12px);
}

.modal-content button {
    background: rgba(108, 117, 125, 0.8);
    color: white;
}

.modal-content a {
    background: rgba(0, 123, 255, 0.8);
    color: white;
}

/* 移动端模态框样式 */
@media (max-width: 768px) {
    .modal {
        padding: 20px !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        box-sizing: border-box !important;
    }
    
    .modal-content {
        width: 90% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        padding: 25px 20px !important;
        border-radius: 10px !important;
    }
    
    .modal-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .modal-content p {
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
    }
    
    .modal-content div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .modal-content button,
    .modal-content a {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
}