/* 评论系统样式 - 适配Solid State主题 */

.comment-section {
    margin-top: 3em;
    padding: 2em;
    background: rgba(46, 49, 65, 0.6);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.comment-section h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid rgba(114, 129, 235, 0.5);
    padding-bottom: 0.5em;
}

.comment-stats {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    margin-bottom: 2em;
    text-align: center;
}

.comment-form-container {
    background: rgba(30, 33, 45, 0.8);
    padding: 2em;
    border-radius: 8px;
    margin-bottom: 2.5em;
    border: 1px solid rgba(114, 129, 235, 0.3);
}

.comment-form-container h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 1.5em;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(46, 49, 65, 0.8);
    color: #ffffff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7281eb;
    background: rgba(46, 49, 65, 1);
    box-shadow: 0 0 0 3px rgba(114, 129, 235, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.form-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-top: 0.4em;
    display: block;
}

.submit-comment-btn {
    background: linear-gradient(135deg, #7281eb 0%, #9a72eb 100%);
    color: #ffffff;
    border: none;
    padding: 0.9em 2.5em;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(114, 129, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5em auto 0;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    line-height: 1;
    min-width: 150px;
    white-space: nowrap;
}

.submit-comment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 129, 235, 0.6);
    background: linear-gradient(135deg, #8291fb 0%, #aa82fb 100%);
}

.submit-comment-btn:active {
    transform: translateY(-1px);
}

.comment-list {
    margin-top: 2em;
}

.comment-item {
    background: rgba(30, 33, 45, 0.7);
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: commentSlideIn 0.5s ease;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item:hover {
    border-color: rgba(114, 129, 235, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comment-header-info {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1em;
    border: 2px solid #7281eb;
    transition: transform 0.3s ease;
}

.comment-avatar:hover {
    transform: rotate(360deg);
}

.comment-meta-info {
    flex: 1;
}

.comment-author-name {
    color: #7281eb;
    font-weight: 700;
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.2em;
}

.comment-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

.comment-text-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.2em;
    word-wrap: break-word;
    padding-left: 62px;
}

.comment-actions-bar {
    display: flex;
    gap: 1em;
    align-items: center;
    padding-left: 62px;
}

.comment-action-btn {
    background: transparent;
    border: 2px solid #7281eb;
    color: #7281eb;
    padding: 0.5em 1.2em;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

.comment-action-btn:hover {
    background: #7281eb;
    color: #ffffff;
    transform: scale(1.05);
}

.like-count-number {
    color: #ff6b6b;
    font-weight: 600;
}

.reply-container {
    margin-top: 1.5em;
    padding-left: 3em;
    border-left: 3px solid #7281eb;
}

.reply-item {
    background: rgba(46, 49, 65, 0.6);
    padding: 1.2em;
    border-radius: 6px;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

.reply-item:hover {
    background: rgba(46, 49, 65, 0.9);
}

.reply-form-box {
    display: none;
    margin-top: 1.2em;
    padding-left: 62px;
}

.reply-form-box textarea {
    width: 100%;
    padding: 0.8em;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(46, 49, 65, 0.8);
    color: #ffffff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    min-height: 80px;
    margin-bottom: 0.8em;
}

.reply-form-box textarea:focus {
    outline: none;
    border-color: #7281eb;
}

.reply-submit-btn {
    background: #7281eb;
    color: #ffffff;
    border: none;
    padding: 0.6em 1.5em;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 2.2em;
}

.reply-submit-btn:hover {
    background: #8291fb;
    transform: translateY(-2px);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8em;
    margin-top: 2.5em;
    flex-wrap: wrap;
    width: 100%;
}

.page-button {
    background: rgba(46, 49, 65, 0.8);
    border: 2px solid #7281eb;
    color: #7281eb;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    min-width: 3em;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-button:hover {
    background: #7281eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-button.active {
    background: #7281eb;
    color: #ffffff;
}

.page-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}


.loading-state {
    text-align: center;
    padding: 3em;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #7281eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spinRotate 1s linear infinite;
    margin: 0 auto 1.5em;
}

@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 33, 45, 0.95);
    color: #ffffff;
    padding: 1.2em 2em;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: toastSlideInRight 0.3s ease;
    display: none;
    border-left: 4px solid #7281eb;
}

@keyframes toastSlideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.success {
    border-left-color: #4caf50;
}

.toast-notification.error {
    border-left-color: #f44336;
}

.empty-state {
    text-align: center;
    padding: 4em 2em;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    background: rgba(30, 33, 45, 0.5);
    border-radius: 8px;
    border: 2px dashed rgba(114, 129, 235, 0.3);
}

.empty-state p {
    margin: 0;
    line-height: 1.8;
    font-weight: 500;
}

@media screen and (max-width: 736px) {
    .comment-section {
        padding: 1.5em;
    }

    .comment-form-container {
        padding: 1.5em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .comment-item {
        padding: 1.2em;
    }

    .comment-avatar {
        width: 45px;
        height: 45px;
    }

    .comment-text-content,
    .comment-actions-bar,
    .reply-form-box {
        display: none;
        margin-top: 1.2em;
        padding-left: 62px;
    }

    .reply-form-hint {
        color: #7281eb;
        font-size: 0.95em;
        font-weight: 600;
        margin-bottom: 0.6em;
        display: block;
    }

    .reply-form-box textarea {
        width: 100%;
        padding: 0.8em;
        border-radius: 6px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        background: rgba(46, 49, 65, 0.8);
        color: #ffffff;
        font-family: "Source Sans Pro", Helvetica, sans-serif;
        min-height: 80px;
        margin-bottom: 0.8em;
    }

    .reply-container {
        margin-top: 1.5em;
        padding-left: 3em;
        border-left: 3px solid #7281eb;
    }

    .reply-item {
        background: rgba(46, 49, 65, 0.6);
        padding: 1.2em;
        border-radius: 6px;
        margin-bottom: 1em;
        transition: all 0.3s ease;
    }

    .reply-item:hover {
        background: rgba(46, 49, 65, 0.9);
    }

    .reply-item.reply-depth-1 {
        margin-left: 0;
    }

    .reply-item.reply-depth-2 {
        margin-left: 1em;
    }

    .reply-item.reply-depth-3 {
        margin-left: 1.5em;
    }

    .reply-item.reply-depth-4 {
        margin-left: 2em;
    }

    .reply-item.reply-depth-5 {
        margin-left: 2.5em;
    }

    .pagination-container {
        gap: 0.5em;
        justify-content: center;
    }

    .page-button {
        padding: 0.6em 1em;
        font-size: 0.9em;
        min-width: 2.5em;
    }
}

@media screen and (max-width: 736px) {
    .comment-section {
        padding: 1.5em;
    }

    .comment-form-container {
        padding: 1.5em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .comment-item {
        padding: 1.2em;
    }

    .comment-avatar {
        width: 45px;
        height: 45px;
    }

    .comment-text-content,
    .comment-actions-bar,
    .reply-form-box {
        padding-left: 57px;
    }

    .reply-container {
        padding-left: 2em;
    }

    .pagination-container {
        gap: 0.5em;
        justify-content: center;
    }

    .page-button {
        padding: 0.6em 1em;
        font-size: 0.9em;
        min-width: 2.5em;
    }
}

@media screen and (max-width: 480px) {
    .comment-section {
        padding: 1em;
    }

    .comment-section h2 {
        font-size: 1.4em;
    }

    .comment-form-container {
        padding: 1.2em;
    }

    .comment-header-info {
        flex-direction: column;
        text-align: center;
    }

    .comment-avatar {
        margin-right: 0;
        margin-bottom: 0.8em;
    }

    .comment-text-content,
    .comment-actions-bar,
    .reply-form-box {
        padding-left: 0;
    }

    .pagination-container {
        gap: 0.4em;
    }

    .page-button {
        padding: 0.5em 0.8em;
        font-size: 0.85em;
        min-width: 2.2em;
    }
}
