/* 评论模块样式 - 适配苹果CMS评论系统 */
.module-comment {
    margin-top: 30px;
}

.module-comment .module-main {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2.75px 2.21px rgba(0,0,0,.01), 0 6.65px 5.32px rgba(0,0,0,.02), 0 12.5px 10px rgba(0,0,0,.01);
}

/* 苹果CMS评论容器 */
.mac_comment {
    font-size: 14px;
}

/* 评论表单样式 */
.mac_comment .comment_form {
    margin-bottom: 30px;
}

.mac_comment .comment_form .comment_form_box {
    background: #f7f8f9;
    border-radius: 8px;
    padding: 15px;
}

.mac_comment .comment_form textarea,
.mac_comment .comment_form .comment_content {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: none;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    color: #282828;
    font-family: -apple-system-font, BlinkMacSystemFont, helvetica neue, pingfang sc, hiragino sans gb, microsoft yahei ui, microsoft yahei, Arial, sans-serif;
}

.mac_comment .comment_form textarea:focus,
.mac_comment .comment_form .comment_content:focus {
    outline: none;
}

.mac_comment .comment_form textarea::placeholder,
.mac_comment .comment_form .comment_content::placeholder {
    color: #9e9e9e;
}

.mac_comment .comment_form .comment_form_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.mac_comment .comment_form .comment_verify {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mac_comment .comment_form .verify {
    width: 120px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.mac_comment .comment_form #verify_img {
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
}

.mac_comment .comment_form .comment_submit {
    background: linear-gradient(to right, #ff711f 0%, #e50914 100%);
    color: #fff;
    border: none;
    padding: 0 25px;
    line-height: 34px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: box-shadow .2s ease;
    box-shadow: 0 10px 12px -4px rgba(229,9,20,.25);
}

.mac_comment .comment_form .comment_submit:hover {
    box-shadow: 0 10px 12px -4px rgba(229,9,20,.4);
}

.mac_comment .comment_form .comment_submit:active {
    transform: translateY(1px);
}

.mac_comment .comment_form .comment_submit i {
    margin-right: 5px;
    font-size: 12px;
    vertical-align: -1px;
}

/* 评论列表样式 */
.mac_comment .comment_list {
    margin-top: 30px;
}

.mac_comment .comment_list .comment_list_header {
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.mac_comment .comment_list .comment_total {
    font-size: 16px;
    color: #424242;
}

.mac_comment .comment_list .comment_total strong {
    color: #e50914;
    font-weight: 700;
}

.mac_comment .comment_list .comment_item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f5;
}

.mac_comment .comment_list .comment_item:last-child {
    border-bottom: none;
}

.mac_comment .comment_list .comment_avatar {
    flex-shrink: 0;
}

.mac_comment .comment_list .comment_avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mac_comment .comment_list .comment_main {
    flex: 1;
}

.mac_comment .comment_list .comment_user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mac_comment .comment_list .comment_user .user_name {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
}

.mac_comment .comment_list .comment_user .comment_time {
    font-size: 12px;
    color: #9e9e9e;
}

.mac_comment .comment_list .comment_content {
    font-size: 14px;
    line-height: 1.6;
    color: #424242;
    margin-bottom: 10px;
    word-break: break-word;
}

.mac_comment .comment_list .comment_reply_content {
    background: #f7f8f9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #616161;
}

.mac_comment .comment_list .comment_reply_content::before {
    content: "回复：";
    color: #e50914;
    font-weight: 600;
}

.mac_comment .comment_list .comment_actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mac_comment .comment_list .comment_actions a,
.mac_comment .comment_list .comment_actions span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #757575;
    cursor: pointer;
    transition: color .2s ease;
    text-decoration: none;
}

.mac_comment .comment_list .comment_actions a:hover,
.mac_comment .comment_list .comment_actions span:hover {
    color: #e50914;
}

.mac_comment .comment_list .comment_reply,
.mac_comment .comment_list .comment_report {
    cursor: pointer;
}

/* 评论回复表单 */
.mac_comment .comment_reply_form {
    margin-top: 15px;
    padding: 15px;
    background: #f7f8f9;
    border-radius: 8px;
}

.mac_comment .comment_reply_form textarea {
    width: 100%;
    min-height: 60px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.6;
}

.mac_comment .comment_reply_form .comment_submit {
    margin-top: 10px;
    padding: 0 20px;
    line-height: 30px;
    font-size: 13px;
}

/* 分页样式 */
.mac_comment .page_list {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
}

.mac_comment .page_list a {
    display: inline-block;
    padding: 0 12px;
    line-height: 32px;
    margin: 0 3px;
    border-radius: 8px;
    background: #f3f5f7;
    color: #616161;
    text-decoration: none;
    transition: all .2s ease;
}

.mac_comment .page_list a:hover {
    background: #e9ecef;
    color: #424242;
}

.mac_comment .page_list a.active {
    background: linear-gradient(to right, #ff711f 0%, #e50914 100%);
    color: #fff;
}

/* 空状态 */
.mac_comment .comment_empty {
    text-align: center;
    padding: 60px 20px;
    color: #9e9e9e;
}

.mac_comment .comment_empty i {
    font-size: 64px;
    color: #c2c6d0;
    margin-bottom: 15px;
    display: block;
}

.mac_comment .comment_empty p {
    font-size: 14px;
}

/* 登录提示 */
.mac_comment .comment_login_tip {
    text-align: center;
    padding: 30px;
    background: #f7f8f9;
    border-radius: 8px;
    color: #757575;
    font-size: 14px;
    margin-bottom: 20px;
}

.mac_comment .comment_login_tip a {
    color: #e50914;
    font-weight: 600;
    margin: 0 5px;
    text-decoration: none;
}

.mac_comment .comment_login_tip a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-comment .module-main {
        padding: 15px;
    }

    .mac_comment .comment_form textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 13px;
    }

    .mac_comment .comment_form .comment_submit {
        padding: 0 20px;
        line-height: 32px;
        font-size: 13px;
    }

    .mac_comment .comment_list .comment_item {
        gap: 10px;
        padding: 15px 0;
    }

    .mac_comment .comment_list .comment_avatar img {
        width: 35px;
        height: 35px;
    }

    .mac_comment .comment_list .comment_user .user_name {
        font-size: 13px;
    }

    .mac_comment .comment_list .comment_content {
        font-size: 13px;
    }

    .mac_comment .comment_list .comment_actions {
        gap: 15px;
    }

    .mac_comment .comment_list .comment_actions a,
    .mac_comment .comment_list .comment_actions span {
        font-size: 12px;
    }
}

@media (max-width: 559px) {
    .module-comment .module-main {
        padding: 12px;
        border-radius: 0;
    }

    .mac_comment .comment_form textarea {
        min-height: 70px;
        padding: 10px;
        font-size: 12px;
    }

    .mac_comment .comment_form .verify {
        width: 100px;
        height: 30px;
        font-size: 12px;
    }

    .mac_comment .comment_form .comment_submit {
        padding: 0 15px;
        line-height: 30px;
        font-size: 12px;
    }

    .mac_comment .comment_login_tip {
        padding: 20px;
        font-size: 13px;
    }
}
