/* 新政策页面 - 留言列表样式 */
.policy-messages-list {
    margin-top: 20px;
    background: #fff;
    border-radius: 4px;
}

.policy-message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.policy-message-item:last-child {
    border-bottom: none;
}

.policy-message-item:hover {
    background-color: #f5f7fa;
}

.message-title {
    flex: 1;
    font-size: 15px;
    color: #303133;
    line-height: 1.6;
    margin-right: 20px;
}

.message-date {
    font-size: 14px;
    color: #909399;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* 留言详情对话框样式 */
.message-detail-content {
    padding: 10px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #606266;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 14px;
    color: #303133;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f5f7fa;
    padding: 12px;
    border-radius: 4px;
}

/* PDF文件表格样式 */
.el-table .el-button + .el-button {
    margin-left: 8px;
}

.el-table__body .el-table__row .el-button {
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 公众留言列表 */
    .policy-message-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .message-title {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .message-date {
        font-size: 12px;
        text-align: left;
        min-width: auto;
    }
    
    .detail-value {
        font-size: 13px;
        padding: 10px;
    }
    
    /* PDF文件表格移动端适配 */
    .el-table {
        font-size: 12px;
    }
    
    .el-table .el-button--mini {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .el-table .el-button + .el-button {
        margin-left: 4px;
    }
    
    /* 移动端表格按钮堆叠 */
    .el-table__body .el-table__row td:last-child .el-button {
        display: block;
        width: 100%;
        margin: 4px 0;
    }
    
    .el-table__body .el-table__row td:last-child .el-button + .el-button {
        margin-left: 0;
    }
    
    /* 对话框移动端适配 */
    .el-dialog {
        width: 95% !important;
    }
    
    .el-dialog__body {
        padding: 15px;
    }
    
    /* 分页组件移动端适配 */
    .el-pagination {
        padding: 10px 0;
    }
    
    .el-pagination .el-pagination__sizes,
    .el-pagination .el-pagination__jump {
        display: none;
    }
}

/* Deep Sea overrides */
.policy-messages-list {
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft) !important;
}

.policy-message-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.policy-message-item:hover {
    background: rgba(139, 86, 201, 0.1) !important;
}

.message-title {
    color: var(--text) !important;
}

.message-date {
    color: var(--text-3) !important;
}

.detail-label {
    color: var(--text-2) !important;
}

.detail-value {
    background: rgba(7, 12, 30, 0.68) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-2) !important;
    border-radius: 12px !important;
}
