/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

.comment-container {
    padding: 20px;
}

/* 搜索面板样式 */
.search-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-item label {
    color: #666;
}

.form-item input,
.form-item select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn {
    background: #1890ff;
    color: #fff;
}

.reset-btn {
    background: #f5f5f5;
    color: #666;
}

/* 表格样式 */
.comment-table-container {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-table {
    width: 100%;
    border-collapse: collapse;
}

.comment-table th,
.comment-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.comment-table th {
    background: #fafafa;
    font-weight: 500;
}

/* 平台信息样式 */
.platform-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-icon {
    font-size: 16px;
}

.platform-icon.ctrip {
    color: #2681ff;
}

.platform-icon.meituan {
    color: #ffd300;
}

.platform-icon.qunar {
    color: #00bb9c;
}

/* 评分样式 */
.rating {
    color: #ffd700;
}

.rating span {
    color: #666;
    margin-left: 5px;
}

/* 状态标签 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-tag.replied {
    background: #e6f7ff;
    color: #1890ff;
}

.status-tag.unreplied {
    background: #fff7e6;
    color: #fa8c16;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.reply {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.view {
    background: #f6ffed;
    color: #52c41a;
}

.action-btn.hide {
    background: #fff7e6;
    color: #fa8c16;
}

/* 分页样式 */
.pagination {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

/* 评论列表样式 */
.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 500;
    margin-bottom: 4px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.product-info {
    text-align: right;
}

.product-name {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.order-id {
    color: #666;
    font-size: 12px;
}

.comment-content {
    margin-bottom: 15px;
}

.comment-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.comment-reply {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
}

.reply-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.reply-text {
    flex: 1;
}

.reply-time {
    color: #999;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 回复弹窗样式 */
.reply-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-body textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    resize: none;
    margin-bottom: 15px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-reply-tag {
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.submit-btn {
    background: #1890ff;
    color: #fff;
}